16 lines
309 B
JavaScript
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
|