BeatSense / frontend /next.config.ts
devrup404's picture
BeatSense: unified FastAPI + Next.js deployment
f4102c2
Raw
History Blame Contribute Delete
346 Bytes
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;