Files
Estacion-de-Documentos/frontend/next.config.mjs
T
2026-05-17 10:14:14 -06:00

19 lines
722 B
JavaScript

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