File size: 612 Bytes
94c9882
 
 
 
bea55e2
 
 
94c9882
bea55e2
94c9882
 
4a70912
94c9882
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;