use middleware for runtime backend proxy
This commit is contained in:
@@ -2,14 +2,6 @@
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user