Next.js configuration for the SIN-Code WebUI v2.
Configures the Next.js build and runtime behavior for a self-hosted, Docker-friendly deployment.
next— the framework that consumes this config.Dockerfile— copies the.next/standaloneoutput produced by this config.
output: 'standalone'— produces a self-contained server bundle.images.unoptimized: true— required for static export / Docker runtime.outputFileTracingExcludes— prevents Turbopack NFT from pulling native modules, runtime data, and test files into the standalone trace.- Security headers returned by
headers():X-Content-Type-Options: nosniffX-Frame-Options: DENYX-XSS-Protection: 1; mode=blockReferrer-Policy: strict-origin-when-cross-originPermissions-Policy— disables unused browser features.
typescript.ignoreBuildErrors: trueis intentional for CI/CD stability (type errors are caught bypnpm tsc --noEmitseparately).- CSP is intentionally omitted from this config; it would require careful tuning for the dynamic chat UI and is better added via middleware once tested end-to-end.