/** @type {import('next').NextConfig} */
const nextConfig = {
  async rewrites() {
    return [
      {
        source: "/api/:path*",
        destination: "https://h5api.tiefen.fun/api/:path*",
        // destination: "https://testapi.tiefen.fun/api/:path*",
      },
    ];
  },
  transpilePackages: ["crypto-js"],
  experimental: {
    missingSuspenseWithCSRBailout: false,
  },
};

module.exports = nextConfig;