Add a server instance selector and drop env vars
This commit is contained in:
parent
9a6df95ade
commit
3725a2eed1
14 changed files with 383 additions and 174 deletions
10
src/env.ts
10
src/env.ts
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue