Files
skript-ui/next.config.ts
Fahri Can Seçer a8236e8783
Some checks failed
Deploy Frontend / build-and-deploy (push) Failing after 19h27m44s
main
2026-02-07 01:52:31 +03:00

22 lines
533 B
TypeScript

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.INTERNAL_API_URL || "http://localhost:3000"}/api/:path*`,
},
];
},
};
const withNextIntl = createNextIntlPlugin();
export default withNextIntl(nextConfig);