mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
15 lines
515 B
TypeScript
15 lines
515 B
TypeScript
import {NODE_ENV, UI_DEV_ENABLE_PROFILING} from 'sentry/constants';
|
|
import ConfigStore from 'sentry/stores/configStore';
|
|
import type {Config} from 'sentry/types';
|
|
|
|
export function commonInitialization(config: Config) {
|
|
if (NODE_ENV === 'development') {
|
|
import(/* webpackMode: "eager" */ 'sentry/utils/silence-react-unsafe-warnings');
|
|
if (UI_DEV_ENABLE_PROFILING) {
|
|
config.sentryConfig.profilesSampleRate = 1.0; // Enable profiling on dev for now.
|
|
}
|
|
}
|
|
|
|
ConfigStore.loadInitialData(config);
|
|
}
|