We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d7849 commit d587ee6Copy full SHA for d587ee6
2 files changed
.env.sample
@@ -7,6 +7,9 @@ DATABASE_URL="file:db/db.sqlite"
7
# For Sentry Error Handling
8
VITE_SENTRY_DSN=""
9
10
+VITE_ANALYTICS_SCRIPT=""
11
+VITE_ANALYTICS_WEBSITE_ID=""
12
+
13
# Umami Analytics
14
UMAMI_DATABASE_URL=postgresql://umami:umami@umami-db:5432/umami
15
UMAMI_APP_SECRET=some-long-random-secret
src/routes/__root.tsx
@@ -38,6 +38,13 @@ export const Route = wrapCreateRootRouteWithSentry(
38
href: appCss,
39
},
40
],
41
+ scripts: [
42
+ {
43
+ defer: true,
44
+ src: import.meta.env.VITE_ANALYTICS_SCRIPT,
45
+ "data-website-id": import.meta.env.VITE_ANALYTICS_WEBSITE_ID,
46
+ },
47
+ ],
48
}),
49
component: RootComponent,
50
});
0 commit comments