1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-15 10:01:41 +04:00

init posthog stats

This commit is contained in:
codecalm
2025-09-23 22:19:25 +02:00
parent fcb38a4059
commit 9893b11ed2
4 changed files with 40 additions and 2 deletions
+4
View File
@@ -32,6 +32,10 @@ export default function (eleventyConfig) {
eleventyConfig.addGlobalData("environment", environment);
eleventyConfig.addGlobalData("readme", readFileSync(join("..", "README.md"), "utf-8"));
eleventyConfig.addGlobalData("license", readFileSync(join("..", "LICENSE"), "utf-8"));
// PostHog Analytics Environment Variables
eleventyConfig.addGlobalData("posthogApiKey", process.env.NEXT_PUBLIC_POSTHOG_KEY);
eleventyConfig.addGlobalData("posthogHost", process.env.NEXT_PUBLIC_POSTHOG_HOST);
eleventyConfig.addGlobalData("pages", () => {
return sync('pages/**/*.html').filter((file) => {