Skip to content

Commit fdc9302

Browse files
committed
fix(legal): render /privacy and /terms dynamically so attribution is current
Both pages were statically generated at build time, baking the default integration enablement — so a source enabled at runtime (e.g. Overture, now live on staging) was used but never credited in the data-source/attribution tables. Mark them force-dynamic like /licenses already is, so they render per-request against the live API and reflect the integrations actually enabled.
1 parent 38ed231 commit fdc9302

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

apps/web/src/app/(legal)/privacy/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import { getLocale, getTranslations } from "next-intl/server";
99
import { LegalPageShell } from "@/components/legal/LegalPageShell";
1010
import { privacyNav } from "./sections";
1111

12+
// Render per-request against the live API so the data-source / attribution
13+
// tables reflect the integrations actually enabled at runtime (matching
14+
// /licenses). Without this the page is statically built with the default
15+
// enablement and never credits a runtime-enabled source like Overture.
16+
export const dynamic = "force-dynamic";
17+
1218
export async function generateMetadata(): Promise<Metadata> {
1319
const t = await getTranslations("legal");
1420
return {

apps/web/src/app/(legal)/terms/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import type { Metadata } from "next";
88
import { getLocale, getTranslations } from "next-intl/server";
99
import { LegalPageShell, type LegalSection } from "@/components/legal/LegalPageShell";
1010

11+
// Render per-request so the data-source / attribution tables reflect the
12+
// integrations enabled at runtime (matching /licenses), not the build-time
13+
// default enablement.
14+
export const dynamic = "force-dynamic";
15+
1116
const sectionsEn: LegalSection[] = [
1217
{ id: sectionSlug("1. Scope and Provider"), label: "Scope and Provider" },
1318
{ id: sectionSlug("2. Description of the Service"), label: "Service Description" },

0 commit comments

Comments
 (0)