17 lines
372 B
JavaScript
17 lines
372 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: process.env.NEXT_PUBLIC_API_URL
|
|
? `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`
|
|
: 'http://localhost:5000/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|