Files
ERP_Distribution/distribution_fe/next.config.ts

12 lines
495 B
TypeScript

import type { NextConfig } from "next"
const nextConfig: NextConfig = {
// react-leaflet's MapContainer doesn't support Strict Mode's dev-only double-invoke of
// mount effects — Leaflet's own map cleanup isn't synchronous, so the second init crashes
// with "Cannot read properties of undefined (reading 'appendChild')" on any page using
// LocationPicker. Production builds never double-invoke, so this only affects local dev.
reactStrictMode: false,
}
export default nextConfig