Initial commit
This commit is contained in:
15
frontend/next.config.js
Normal file
15
frontend/next.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user