this repo has no description
1import { BUILD } from './build';
2import type { ErrorKitConfig } from '@amp/web-apps-logger/src/errorkit';
3
4const APPS_PROD_SUBDOMAIN = ['apps'];
5const PROJECT_ID = 'onyx_apps';
6
7const getSentryEnv = () => {
8 const location =
9 typeof window !== 'undefined' && window.location.host.split('.')[0];
10 return APPS_PROD_SUBDOMAIN.includes(location) ? 'prod' : 'dev';
11};
12
13export const ERROR_KIT_CONFIG: ErrorKitConfig = {
14 project: PROJECT_ID,
15 environment: getSentryEnv(),
16 release: BUILD,
17};