UploadFile / frontend /next.config.mjs
ddosvn's picture
Deploy Upload ThTuanIT Full-stack (Go + Next.js + Python hf_xet + MongoDB)
7c5da52 verified
Raw History Blame Contribute Delete
440 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
reactStrictMode: true,
async rewrites() {
const apiBase = process.env.BACKEND_URL || 'http://127.0.0.1:8080';
return [
{
source: '/api/:path*',
destination: `${apiBase}/api/:path*`,
},
{
source: '/health',
destination: `${apiBase}/health`,
},
];
},
};
export default nextConfig;