2026-03-03 14:09:25 +01:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
|
|
|
|
output: 'standalone',
|
2026-03-06 08:01:09 +01:00
|
|
|
async rewrites() {
|
2026-03-09 14:21:03 +01:00
|
|
|
const apiUrl = process.env.API_INTERNAL_URL || process.env.NEXT_PUBLIC_API_URL || 'http://localhost:5001';
|
|
|
|
|
return {
|
|
|
|
|
beforeFiles: [],
|
|
|
|
|
afterFiles: [],
|
|
|
|
|
fallback: [
|
|
|
|
|
{
|
|
|
|
|
source: '/api/:path*',
|
|
|
|
|
destination: `${apiUrl}/api/:path*`,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
2026-03-06 08:01:09 +01:00
|
|
|
},
|
2026-03-03 14:09:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|