feat: Añadir configuración de Nginx para el API de LMS y ajustar las rutas en el frontend de OpenCCB

This commit is contained in:
2026-03-31 12:32:55 -03:00
parent d331381efd
commit 2d2ea216e0
8 changed files with 79 additions and 8 deletions
+8 -2
View File
@@ -25,7 +25,12 @@ const nextConfig = {
],
},
async rewrites() {
return [
// Using `fallback` ensures Next.js pages (including dynamic routes like
// /courses/[id]) are matched BEFORE these proxy rewrites. Without this,
// `afterFiles` rewrites (the default for arrays) would intercept RSC
// prefetch requests to dynamic pages and proxy them to Rust instead.
return {
fallback: [
{
source: '/assets/:path*',
destination: 'http://localhost:3001/assets/:path*',
@@ -143,7 +148,8 @@ const nextConfig = {
source: '/health',
destination: 'http://localhost:3001/health',
},
];
],
};
},
};