Add a server instance selector and drop env vars

This commit is contained in:
Paul Frazee 2022-11-15 15:09:50 -06:00
parent 9a6df95ade
commit 3725a2eed1
14 changed files with 383 additions and 174 deletions

View file

@ -1,10 +0,0 @@
if (typeof process.env.REACT_APP_BUILD !== 'string') {
throw new Error('ENV: No env provided')
}
if (!['dev', 'staging', 'prod'].includes(process.env.REACT_APP_BUILD)) {
throw new Error(
`ENV: Env must be "dev", "staging", or "prod," got "${process.env.REACT_APP_BUILD}"`,
)
}
export const BUILD = process.env.REACT_APP_BUILD