Skip to content

Commit 533665d

Browse files
committed
chore: pass through via metrics server
1 parent 2483b70 commit 533665d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import posthog from "posthog-js";
66

77
if (process.env.PUBLIC_POSTHOG_API_KEY) {
88
posthog.init(process.env.PUBLIC_POSTHOG_API_KEY, {
9-
api_host: "https://us.i.posthog.com",
9+
api_host: "https://metrics.speakeasy.com",
1010
person_profiles: "identified_only",
1111
});
1212
}

web/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export default defineConfig({
1111
global: {},
1212
// importing moonshine error'd without this.
1313
"process.env.VSCODE_TEXTMATE_DEBUG": "false",
14-
"process.env.PUBLIC_POSTHOG_API_KEY": process.env.PUBLIC_POSTHOG_API_KEY,
14+
"process.env.PUBLIC_POSTHOG_API_KEY": JSON.stringify(
15+
process.env.PUBLIC_POSTHOG_API_KEY,
16+
),
1517
},
1618
resolve: {
1719
alias: {

0 commit comments

Comments
 (0)