use middleware for runtime backend proxy

This commit is contained in:
2026-04-14 22:48:00 -06:00
parent 5b88ee242e
commit d35c820967
2 changed files with 11 additions and 8 deletions

View File

@@ -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;