fix: use correct env var name NEXT_PUBLIC_POSTHOG_KEY in docs workflow

The GitHub secret is POSTHOG_API_KEY but Next.js requires the
NEXT_PUBLIC_ prefix to expose it to the client bundle.
This commit is contained in:
Jean du Plessis
2026-02-18 21:39:03 +02:00
parent b563f4a21c
commit 533aaa8112
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
- name: Build site
run: bun run --filter @kilocode/kilo-docs build
env:
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.POSTHOG_API_KEY }}
- name: Run tests
run: bun run --filter @kilocode/kilo-docs test