diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
commit | 3725a2eed10707194bc9554a9c58166e9324dfc8 (patch) | |
tree | f167b4541f86eb5b9ff8629c0bbb6486644f498b /src/env.native.ts | |
parent | 9a6df95adecaf3935fdbd58d893fca6489a040b9 (diff) | |
download | voidsky-3725a2eed10707194bc9554a9c58166e9324dfc8.tar.zst |
Add a server instance selector and drop env vars
Diffstat (limited to 'src/env.native.ts')
-rw-r--r-- | src/env.native.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/env.native.ts b/src/env.native.ts deleted file mode 100644 index a2ec3a4dc..000000000 --- a/src/env.native.ts +++ /dev/null @@ -1,13 +0,0 @@ -// @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 |