InsuranceBot / frontend /next.config.ts
rohitsar567's picture
Deploy v1 β€” single-Docker FastAPI + Next.js + RAG + voice + faithfulness
5dbdf6e verified
Raw
History Blame Contribute Delete
544 Bytes
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Static export β€” the built frontend is served by the FastAPI backend
// alongside the /api/* routes on a single port. This lets us deploy
// everything to a single Hugging Face Space (Docker).
output: "export",
// Disable next/image optimization in static export (no Node runtime serving it)
images: { unoptimized: true },
// Trailing slashes match the way FastAPI's StaticFiles serves directories
trailingSlash: true,
};
export default nextConfig;