feat: move analytics script to env
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m2s

This commit is contained in:
2026-01-19 14:04:00 +01:00
parent f5cea555cd
commit 83cb2bd950
4 changed files with 10 additions and 1 deletions

View File

@@ -2,7 +2,14 @@
import "@nodarium/ui/app.css";
import "../app.css";
import type { Snippet } from "svelte";
import * as config from "$lib/config";
const { children } = $props<{ children?: Snippet }>();
</script>
{@render children?.()}
<svelte:head>
{#if config.ANALYTIC_SCRIPT}
{@html config.ANALYTIC_SCRIPT}
{/if}
</svelte:head>