Use our analytics service properly (#9985)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-10-01 12:30:23 +07:00
committed by GitHub
parent 7d706ec4f1
commit 2b39a954a0
79 changed files with 328 additions and 429 deletions
-3
View File
@@ -22,7 +22,6 @@ interface Config {
BotName: string
SentryDSN: string
BrandingPath: string
WorkspaceInactivityInterval: number // Interval in days to stop workspace synchronization if not visited
@@ -49,7 +48,6 @@ const envMap: { [key in keyof Config]: string } = {
CollaboratorURL: 'COLLABORATOR_URL',
SentryDSN: 'SENTRY_DSN',
BrandingPath: 'BRANDING_PATH',
WorkspaceInactivityInterval: 'WORKSPACE_INACTIVITY_INTERVAL',
@@ -94,7 +92,6 @@ const config: Config = (() => {
CollaboratorURL: process.env[envMap.CollaboratorURL],
SentryDSN: process.env[envMap.SentryDSN],
BrandingPath: process.env[envMap.BrandingPath] ?? '',
WorkspaceInactivityInterval: parseInt(process.env[envMap.WorkspaceInactivityInterval] ?? '3'), // In days
RateLimit: parseInt(process.env[envMap.RateLimit] ?? '25')