From afaa5e038c688222ea67d3380f649116481c5e7b Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 20 Jun 2026 21:35:14 +0200 Subject: [PATCH] fix: resolve TS dynamic collision and remove anomalous map entries --- app/[locale]/page.tsx | 22 ++++++++--------- lib/map-data.ts | 56 ------------------------------------------- 2 files changed, 11 insertions(+), 67 deletions(-) diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 0c6dd9826..7a0f3bc34 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -6,22 +6,22 @@ import { MDXRemote } from 'next-mdx-remote/rsc'; export const dynamic = 'force-dynamic'; -import dynamic from 'next/dynamic'; +import nextDynamic from 'next/dynamic'; -const HomeHero = dynamic(() => import('@/components/blocks/HeroVideo').then(mod => mod.HeroVideo), { ssr: true }); -const HomeSubCompanyTiles = dynamic(() => import('@/components/blocks/SubCompanyTiles').then(mod => mod.SubCompanyTiles)); -const HomeCompetenceBentoGrid = dynamic(() => import('@/components/blocks/CompetenceBentoGrid').then(mod => mod.CompetenceBentoGrid)); -const HomeReferencesSlider = dynamic(() => import('@/components/blocks/ReferencesSlider').then(mod => mod.ReferencesSlider)); -const FaqBlock = dynamic(() => import('@/components/blocks/FaqBlock').then(mod => mod.FaqBlock)); -const CertificatesBlock = dynamic(() => import('@/components/blocks/CertificatesBlock').then(mod => mod.CertificatesBlock)); -const HeroSection = dynamic(() => import('@/components/blocks/HeroSection').then(mod => mod.HeroSection), { ssr: true }); +const HomeHero = nextDynamic(() => import('@/components/blocks/HeroVideo').then(mod => mod.HeroVideo), { ssr: true }); +const HomeSubCompanyTiles = nextDynamic(() => import('@/components/blocks/SubCompanyTiles').then(mod => mod.SubCompanyTiles)); +const HomeCompetenceBentoGrid = nextDynamic(() => import('@/components/blocks/CompetenceBentoGrid').then(mod => mod.CompetenceBentoGrid)); +const HomeReferencesSlider = nextDynamic(() => import('@/components/blocks/ReferencesSlider').then(mod => mod.ReferencesSlider)); +const FaqBlock = nextDynamic(() => import('@/components/blocks/FaqBlock').then(mod => mod.FaqBlock)); +const CertificatesBlock = nextDynamic(() => import('@/components/blocks/CertificatesBlock').then(mod => mod.CertificatesBlock)); +const HeroSection = nextDynamic(() => import('@/components/blocks/HeroSection').then(mod => mod.HeroSection), { ssr: true }); import JsonLd from '@/components/JsonLd'; import { Button } from '@/components/ui/Button'; import { Heading } from '@/components/ui/Heading'; -const AnimatedCounter = dynamic(() => import('@/components/ui').then(mod => mod.AnimatedCounter)); -const InteractiveGermanyMap = dynamic(() => import('@/components/blocks/InteractiveGermanyMap').then(mod => mod.InteractiveGermanyMap)); -const ScaleOfImpact = dynamic(() => import('@/components/blocks/ScaleOfImpact').then(mod => mod.ScaleOfImpact)); +const AnimatedCounter = nextDynamic(() => import('@/components/ui').then(mod => mod.AnimatedCounter)); +const InteractiveGermanyMap = nextDynamic(() => import('@/components/blocks/InteractiveGermanyMap').then(mod => mod.InteractiveGermanyMap)); +const ScaleOfImpact = nextDynamic(() => import('@/components/blocks/ScaleOfImpact').then(mod => mod.ScaleOfImpact)); import { getAllReferences } from '@/lib/references'; const mdxComponents = (references: any[]) => ({ diff --git a/lib/map-data.ts b/lib/map-data.ts index f6a203a5d..e84c332ba 100644 --- a/lib/map-data.ts +++ b/lib/map-data.ts @@ -189,62 +189,6 @@ export const minorLocations: Location[] = [ y: 83.33, description: 'fiber', }, - { - id: 'hdd-29436-meter-29436', - name: 'HDD 29436 Meter', - type: 'minor_node', - x: 46.89, - y: 41.34, - description: 'power', - }, - { - id: 'hdd-28680-meter-28680', - name: 'HDD 28680 Meter', - type: 'minor_node', - x: 44.84, - y: 43.61, - description: 'power', - }, - { - id: 'hdd-44655-meter-44655', - name: 'HDD 44655 Meter', - type: 'minor_node', - x: 49.36, - y: 48.57, - description: 'power', - }, - { - id: 'kabelverlegung-76727-meter-76727', - name: 'Kabelverlegung 76727 Meter', - type: 'minor_node', - x: 45.57, - y: 49.95, - description: 'power', - }, - { - id: 'offener-tiefbau-21288-meter-21288', - name: 'Offener Tiefbau 21288 Meter', - type: 'minor_node', - x: 40.15, - y: 49.41, - description: 'power', - }, - { - id: 'offener-tiefbau-30773-meter-30773', - name: 'Offener Tiefbau 30773 Meter', - type: 'minor_node', - x: 41.74, - y: 43.78, - description: 'power', - }, - { - id: 'offener-tiefbau-34815-meter-34815', - name: 'Offener Tiefbau 34815 Meter', - type: 'minor_node', - x: 43.91, - y: 42.14, - description: 'power', - }, { id: 'pv-anlage-01909-grosshartau-01909', name: 'PV-Anlage, 01909 Großhartau',