Files
ulweb/web/next.config.mjs
2026-07-12 01:09:33 +00:00

17 lines
334 B
JavaScript

/** @type {import('next').NextConfig} */
const backendHost = process.env.BACKEND_HOST || 'http://backend:3001';
const nextConfig = {
reactStrictMode: true,
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${backendHost}/api/:path*`,
},
];
},
};
export default nextConfig;