Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Failing after 2m42s
22 lines
496 B
TypeScript
22 lines
496 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: "http://localhost:3000/api/:path*",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
const withNextIntl = createNextIntlPlugin();
|
|
export default withNextIntl(nextConfig);
|