17 lines
356 B
JavaScript
17 lines
356 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: process.env.BACKEND_URL
|
|
? `${process.env.BACKEND_URL}/api/:path*`
|
|
: 'http://backend:8081/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|