Skip to content

Commit e149869

Browse files
committed
(fix) - Add missing environment variable for posthog api_url. Remove console debug
1 parent 959e4cf commit e149869

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
deployments: write
1414
env:
1515
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
16+
POSTHOG_API_URL: ${{ vars.POSTHOG_API_URL }}
1617
steps:
1718
- name: Create deployment status
1819
uses: bobheadxi/deployments@v1

app/scripts/analytics.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ export async function initPostHog() {
1313
mode: "no-cors",
1414
})
1515
if (!r.ok) {
16-
console.error("Error fetching PostHog API URL:", r.statusText);
17-
console.error("Using default PostHog API URL:", POSTHOG_DEFAULT_API_URL);
1816
posthogApiUrl = POSTHOG_API_URL;
1917
}
2018
if (POSTHOG_API_URL) {
21-
console.log('here');
2219
posthogApiUrl = POSTHOG_API_URL;
2320
}
24-
console.log("Initializing PostHog with API:", posthogApiUrl);
2521
if (posthogApiUrl) {
2622
posthog.init(POSTHOG_KEY, {
2723
api_host: posthogApiUrl,

0 commit comments

Comments
 (0)