revert: remove leaflet.gridlayer.googlemutant — incompatible with Next.js 15 bundler

The package consistently throws 'L.GridLayer.GoogleMutant is not a constructor'
due to L-instance conflicts in the webpack bundle, despite multiple workaround
attempts. Removed package, transpilePackages entry, type stub, env var, and all
related component code. Traffic overlay dropped; geocoding (backend) unaffected.
This commit is contained in:
Logan
2026-05-25 14:19:21 -04:00
parent 8a668e6a59
commit ef8e0d1bfa
5 changed files with 7 additions and 73 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
transpilePackages: ["leaflet", "react-leaflet", "leaflet.gridlayer.googlemutant"],
transpilePackages: ["leaflet", "react-leaflet"],
};
export default nextConfig;