This commit is contained in:
urieljarethbusiness-cpu
2026-05-17 10:14:14 -06:00
parent d8773b2508
commit 64b3d15b90
61 changed files with 7612 additions and 0 deletions
+18
View File
@@ -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;