planning-fight/next.config.ts
2025-11-04 15:18:19 +01:00

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;