Files
bsky-social-app/src/env.native.ts
T
2022-11-11 15:02:19 -06:00

14 lines
366 B
TypeScript

// @ts-ignore types not available -prf
import {REACT_APP_BUILD} from '@env'
if (typeof REACT_APP_BUILD !== 'string') {
throw new Error('ENV: No env provided')
}
if (!['dev', 'staging', 'prod'].includes(REACT_APP_BUILD)) {
throw new Error(
`ENV: Env must be "dev", "staging", or "prod," got "${REACT_APP_BUILD}"`,
)
}
export const BUILD = REACT_APP_BUILD