import type { NextConfig } from "next"; import createNextIntlPlugin from "next-intl/plugin"; const nextConfig: NextConfig = { output: 'standalone', experimental: { optimizePackageImports: ["@chakra-ui/react"], }, reactCompiler: true, async rewrites() { return [ { source: "/api/backend/:path*", destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3005/api'}/:path*`, }, ]; }, }; const withNextIntl = createNextIntlPlugin(); export default withNextIntl(nextConfig);