Files

21 lines
459 B
TypeScript
Raw Permalink Normal View History

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'standalone',
async rewrites() {
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*`,
},
],
};
},
};
export default nextConfig;