17 lines
331 B
TypeScript
17 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;
|