cellex-web / next.config.ts
eeshaAI
feat: Migrate frontend from static HTML to Next.js 16 App Router
bea55e2
Raw
History Blame Contribute Delete
612 Bytes
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
// Strict TypeScript — fail the build on missing imports / type errors.
// This catches bugs like the "Sparkles not imported" crash at build time
// instead of letting them hit production.
typescript: {
ignoreBuildErrors: false,
},
reactStrictMode: false,
// Allow running behind Hugging Face Spaces reverse proxy
experimental: {
serverActions: {
allowedOrigins: ['*.hf.space', '*.space-z.ai'],
},
},
compress: true,
poweredByHeader: false,
};
export default nextConfig;