Files
CPLv4.0/next.config.mjs
ISA b7ca20f7c3 Fix: Preserve chart state during zoom, pan, and date changes
- Added React.useMemo to memoize chartData and chartOptions to prevent unnecessary re-renders.
- Ensured chart zoom and pan states are maintained during interactions.
- Improved performance and user experience by avoiding chart
2025-07-22 10:57:25 +02:00

24 lines
446 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" }),
// ✅ Neu: ESLint beim Build ignorieren
eslint: {
ignoreDuringBuilds: true,
},
env: {
NEXT_PUBLIC_CPL_MODE: process.env.NEXT_PUBLIC_CPL_MODE,
},
};
export default nextConfig;