Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const production = process.argv.includes("--production")
const watch = process.argv.includes("--watch")
const noBundleForCoverage = process.argv.includes("--no-bundle")

const POSTHOG_API_KEY = "phc_s0Qx8NxueJvnqe4YE7NEKYNosJr8aZ81tIByuzm464X"
const POSTHOG_API_KEY = "phc_AjjAbYjTCwQgMVp5J5fG2a4Ab6XUoq2bjjVk8jwzZeJd"
const POSTHOG_HOST = "https://us.i.posthog.com"

function copyWasmFiles() {
const wasmDestDir = path.join(import.meta.dirname, "dist", "wasm")
Expand Down Expand Up @@ -66,6 +67,9 @@ async function main() {
"process.env.POSTHOG_API_KEY": production
? JSON.stringify(POSTHOG_API_KEY)
: '""',
"process.env.POSTHOG_HOST": production
? JSON.stringify(POSTHOG_HOST)
: '""',
__DIST_ROOT__: JSON.stringify(path.join(import.meta.dirname, "dist")),
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/telemetry/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PostHog } from "posthog-node"
import type { TelemetryConfig } from "./types"

const POSTHOG_API_KEY = process.env.POSTHOG_API_KEY || ""
const POSTHOG_HOST = "https://eu.i.posthog.com"
const POSTHOG_HOST = process.env.POSTHOG_HOST || ""

/** Flush after this many events are queued */
const FLUSH_AT = 10
Expand Down
Loading