16 lines
331 B
TypeScript
16 lines
331 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
async rewrites() {
|
|
const apiUrl = process.env.API_URL || 'http://localhost:3001';
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: `${apiUrl}/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|