testfix/frontend/next.config.js

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:8080/api/:path*',
},
];
},
};
module.exports = nextConfig;