File size: 346 Bytes
f4102c2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
const apiTarget = process.env.API_INTERNAL_URL ?? "http://127.0.0.1:8000";
return [
{
source: "/api/:path*",
destination: `${apiTarget}/:path*`,
},
];
},
};
export default nextConfig;
|