planning-fight/next.config.ts

17 lines
331 B
TypeScript
Raw Permalink Normal View History

2025-11-04 14:18:19 +00:00
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;