13 lines
519 B
TypeScript
13 lines
519 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,
|
|
output: "standalone",
|
|
}
|
|
|
|
export default nextConfig
|