mirror of https://github.com/kortix-ai/suna.git
12 lines
408 B
TypeScript
12 lines
408 B
TypeScript
import posthog from 'posthog-js';
|
|
|
|
if (process.env.NEXT_PUBLIC_POSTHOG_KEY) {
|
|
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {
|
|
api_host: '/ingest',
|
|
ui_host: 'https://eu.posthog.com',
|
|
defaults: '2025-05-24',
|
|
capture_exceptions: true, // This enables capturing exceptions using Error Tracking, set to false if you don't want this
|
|
debug: process.env.NODE_ENV === 'development',
|
|
});
|
|
}
|