20 lines
420 B
JavaScript
20 lines
420 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
allowedDevOrigins: ['172.20.1.238'],
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://backend:3002/api/:path*',
|
|
},
|
|
{
|
|
source: '/webhooks/:path*',
|
|
destination: 'http://backend:3002/webhooks/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|