Skip to content

Commit 55a873f

Browse files
fix: apply suggestions from the rabbit
1 parent 4672e00 commit 55a873f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
KV_REST_API_TOKEN=your_kv_token
22
KV_REST_API_URL="https://your.api/url"
33
GITHUB_TOKEN=your_github_token
4+
PUBLIC_POSTHOG_TOKEN=your_posthog_token

src/app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@import "tailwindcss" theme(static);
2-
3-
@plugin "@tailwindcss/typography";
42
@import "tw-animate-css";
53
@import "./fonts.css";
64

5+
@plugin "@tailwindcss/typography";
6+
77
@variant dark (&:is(.dark *));
88

99
/* shadcn static */

src/routes/+layout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { browser } from "$app/environment";
2+
import { PUBLIC_POSTHOG_TOKEN } from "$env/static/public";
23
import posthog from "posthog-js";
34
import { injectSpeedInsights } from "@vercel/speed-insights/sveltekit";
45
import type { MetaTagsProps } from "svelte-meta-tags";
@@ -9,7 +10,7 @@ const siteName = "Svelte Changelog";
910

1011
export function load({ url, data }) {
1112
if (browser) {
12-
posthog.init("phc_mikNRIemcxWqXq0a4Pj9WPIWpbl815sf8VoMLJlFNYT", {
13+
posthog.init(PUBLIC_POSTHOG_TOKEN, {
1314
api_host: `${url.origin}/ingest`,
1415
ui_host: "https://eu.posthog.com",
1516
person_profiles: "always"

0 commit comments

Comments
 (0)