feat(analytics): pull pm86 site-id from CMS page_config, drop env var
Deploy / verify (push) Successful in 39s
Deploy / deploy (push) Successful in 54s

- +layout.server: expose pageConfig.analyticsPm86SiteId on layout data
- +layout.svelte: inject analytics.pm86.de script when CMS value present
- +error.svelte: light 404 page with wald-700 accent, dropped dark gradient
- .env.example + deploy.yml: remove PUBLIC_ANALYTICS_PM86_SITE_ID
This commit is contained in:
Peter Meier
2026-04-17 23:21:45 +02:00
parent 78b358e10f
commit da340530ee
5 changed files with 13 additions and 20 deletions
+2
View File
@@ -238,5 +238,7 @@ export const load: LayoutServerLoad = async ({ locals }) => {
pageConfig,
seoTitleTemplate: pageConfig?.seoTitle ?? null,
seoDescriptionTemplate: pageConfig?.seoDescription ?? null,
analyticsPm86SiteId:
(pageConfig as { analyticsPm86SiteId?: string } | null)?.analyticsPm86SiteId ?? null,
};
};