Handle client-only rendering for IaC service page (#759)

This commit is contained in:
cloudneutral 2025-12-06 16:06:59 +08:00 committed by GitHub
parent eca08bfd38
commit c0b22c314d

View File

@ -3,13 +3,15 @@ export const dynamic = 'error'
import type { Metadata } from 'next'
import { notFound } from 'next/navigation'
import ServiceDetailView from '@components/iac/ServiceDetailView'
import dynamic from 'next/dynamic'
import { CATALOG, PROVIDERS } from '@lib/iac/catalog'
import type { CatalogItem, ProviderKey } from '@lib/iac/types'
import cloudIacIndex from '../../../../../public/_build/cloud_iac_index.json'
import { isFeatureEnabled } from '@lib/featureToggles'
const ServiceDetailView = dynamic(() => import('@components/iac/ServiceDetailView'), { ssr: false })
type PageParams = {
provider: string
service: string