Files
Magent/frontend/next.config.js
2026-01-22 22:49:57 +13:00

16 lines
309 B
JavaScript

const backendUrl = process.env.BACKEND_INTERNAL_URL || 'http://backend:8000'
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${backendUrl}/:path*`,
},
]
},
}
module.exports = nextConfig