Skip to content

Commit e037cb8

Browse files
committed
revert(whitelabel): drop force-dynamic from landing layout
Cascading force-dynamic neutered dynamicParams = false + generateStaticParams on /blog/[slug], /integrations/[slug], /models/[provider], /models/[provider]/[model] — killing static prerender for SEO-critical pages. The hydration concern only materializes for whitelabel Docker deployments where build-time and runtime NEXT_PUBLIC_BRAND_* differ; those deployments can set the vars at build instead. Keeping force-dynamic on /privacy, /terms, and /manifest where it actually matters.
1 parent b0602a2 commit e037cb8

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

apps/sim/app/(landing)/layout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ export const metadata: Metadata = {
1616
},
1717
}
1818

19-
/** Opt the landing segment out of static prerendering so client components like
20-
* Navbar render with the live runtime env (e.g. Docker-injected `NEXT_PUBLIC_BRAND_*`)
21-
* during SSR, avoiding hydration mismatches against `window.__ENV`. */
22-
export const dynamic = 'force-dynamic'
23-
2419
/**
2520
* Landing page route-group layout.
2621
*

0 commit comments

Comments
 (0)