Files
group-2-threaded-project-pe…/web/next.config.mjs

16 lines
323 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
reactCompiler: true,
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${process.env.BACKEND_URL || "http://localhost:8080"}/api/:path*`,
},
];
},
};
export default nextConfig;