1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const backendUrl = process.env.BACKEND_INTERNAL_URL || "http://127.0.0.1:8000";
|
||||
|
||||
const nextConfig = {
|
||||
output: "standalone",
|
||||
async rewrites() {
|
||||
return [
|
||||
{ source: "/health", destination: `${backendUrl}/health` },
|
||||
{ source: "/settings/:path*", destination: `${backendUrl}/settings/:path*` },
|
||||
{ source: "/subjects/:path*", destination: `${backendUrl}/subjects/:path*` },
|
||||
{ source: "/sources/:path*", destination: `${backendUrl}/sources/:path*` },
|
||||
{ source: "/documents/:path*", destination: `${backendUrl}/documents/:path*` },
|
||||
{ source: "/jobs/:path*", destination: `${backendUrl}/jobs/:path*` },
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user