Files
Anelia-Wolf/next.config.ts
2026-09-06 17:21:52 +02:00

23 lines
817 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Static HTML export → deployable on any web host (Hetzner, Netlify, Vercel, plain FTP)
output: "export",
// /leistungen/coaching/ → out/leistungen/coaching/index.html (works on dumb static hosts)
trailingSlash: true,
images: {
// No image optimisation server in a static export
unoptimized: true,
},
reactStrictMode: true,
experimental: {
/* Ohne dieses Flag hat der Export bei ZWEI Wurzel-Layouts (Deutsch und Englisch)
keine gestaltete 404 mehr: Next findet kein gemeinsames Layout und schreibt seine
eigene, ungestaltete Seite nach out/404.html. src/app/global-not-found.tsx ersetzt
sie und rendert das Dokument selbst. */
globalNotFound: true,
},
};
export default nextConfig;