replace segment with posthog

This commit is contained in:
Hongbo Wu
2024-02-26 16:47:04 +08:00
parent 64fe31a717
commit d26a2f403d
31 changed files with 172 additions and 214 deletions

View File

@ -40,8 +40,8 @@ export interface BackendEnv {
secret: string
}
}
segment: {
writeKey: string
posthog: {
apiKey: string
}
intercom: {
token: string
@ -136,7 +136,7 @@ const nullableEnvVars = [
'GAUTH_ANDROID_CLIENT_ID',
'GAUTH_CLIENT_ID',
'GAUTH_SECRET',
'SEGMENT_WRITE_KEY',
'POSTHOG_API_KEY',
'TWITTER_BEARER_TOKEN',
'GCS_UPLOAD_PRIVATE_BUCKET',
'SENDER_MESSAGE',
@ -226,8 +226,8 @@ export function getEnv(): BackendEnv {
secret: parse('GAUTH_SECRET'),
},
}
const segment = {
writeKey: parse('SEGMENT_WRITE_KEY'),
const posthog = {
apiKey: parse('POSTHOG_API_KEY'),
}
const intercom = {
token: parse('INTERCOM_TOKEN'),
@ -317,7 +317,7 @@ export function getEnv(): BackendEnv {
client,
server,
google,
segment,
posthog,
intercom,
sentry,
jaeger,