mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
fix: fix map rendering in react strict mode
This commit is contained in:
+6
-1
@@ -1,5 +1,10 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
const nextConfig = {
|
||||
// react-leaflet v4 creates maps in a render-phase ref callback, which breaks
|
||||
// under React dev StrictMode's double-mount ("Map container is already
|
||||
// initialized"). StrictMode only runs in dev, so production is unaffected.
|
||||
reactStrictMode: false,
|
||||
};
|
||||
|
||||
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
||||
enabled: process.env.ANALYZE === "true",
|
||||
|
||||
Reference in New Issue
Block a user