- output: "export" wird jetzt automatisch bei EXPORT_STATIC=true aktiviert - Entwicklungsmodus (npm run dev) nutzt weiterhin API-Routen für Mock-Tests - Neues npm-Skript nutzt cross-env für Umgebungsunabhängigkeit bei Windows/Linux - cross-env als devDependency hinzugefügt
15 lines
311 B
JavaScript
15 lines
311 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
const isExport = process.env.EXPORT_STATIC === "true";
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
trailingSlash: false,
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
...(isExport && { output: "export" }), // ⬅️ dynamisch aktivieren
|
|
};
|
|
|
|
export default nextConfig;
|