fix(geoportal): import MapLibre CSS at page level (fixes blank map with next/dynamic)

CSS imports inside dynamically loaded components (ssr: false) don't get
included in the production bundle. Importing maplibre-gl CSS at the page
level ensures it's always available. Applied to both geoportal and
parcel-sync pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-23 16:49:40 +02:00
parent 1b5876524a
commit 3346ec709d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
"use client";
import "maplibre-gl/dist/maplibre-gl.css";
import { FeatureGate } from "@/core/feature-flags";
import { useI18n } from "@/core/i18n";
import { GeoportalModule } from "@/modules/geoportal";
+1
View File
@@ -1,5 +1,6 @@
"use client";
import "maplibre-gl/dist/maplibre-gl.css";
import { FeatureGate } from "@/core/feature-flags";
import { useI18n } from "@/core/i18n";
import { ParcelSyncModule } from "@/modules/parcel-sync";