ente/packages/shared/apps/env.ts
2023-11-18 15:32:54 +05:30

13 lines
380 B
TypeScript

import { APP_ENV } from './constants';
export const getAppEnv = () =>
process.env.NEXT_PUBLIC_APP_ENV ?? APP_ENV.PRODUCTION;
export const isDisableSentryFlagSet = () => {
return process.env.NEXT_PUBLIC_DISABLE_SENTRY === 'true';
};
export const getSentryDSN = () => process.env.NEXT_PUBLIC_SENTRY_DSN;
export const getSentryRelease = () => process.env.SENTRY_RELEASE;