This commit is contained in:
MarkLo 2025-11-21 10:23:21 +08:00
parent 710ff8c855
commit f3ec43bb2b
2 changed files with 8 additions and 18 deletions

View File

@ -1,5 +1,13 @@
const nextConfig = {
output: 'standalone',
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${process.env.API_URL || "http://backend:8000"}/api/:path*`,
},
];
},
};
export default nextConfig;

View File

@ -1,18 +0,0 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
reactCompiler: true,
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${
process.env.API_URL || "http://backend:8000"
}/api/:path*`,
},
];
},
};
export default nextConfig;