feat(analytics): pull pm86 site-id from CMS page_config, drop env var
- +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:
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user