Removes curly braces from envsubst template strings
This commit is contained in:
parent
f74580ba63
commit
0b7851bc0b
|
@ -3,7 +3,7 @@ import {AppEnvironment} from 'sartography-workflow-lib';
|
|||
declare var ENV;
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: ENV && ENV.production === '{$PRODUCTION}' ? false : (ENV.production === 'true'),
|
||||
api: ENV && ENV.api === '{$API_URL}' ? 'http://localhost:5000/v1.0' : ENV.api,
|
||||
irbUrl: ENV && ENV.irbUrl === '{$IRB_URL}' ? 'http://localhost:5001' : ENV.irbUrl,
|
||||
production: ENV && ENV.production === '$PRODUCTION' ? false : (ENV.production === 'true'),
|
||||
api: ENV && ENV.api === '$API_URL' ? 'http://localhost:5000/v1.0' : ENV.api,
|
||||
irbUrl: ENV && ENV.irbUrl === '$IRB_URL' ? 'http://localhost:5001' : ENV.irbUrl,
|
||||
};
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
<base href="/">
|
||||
<script>
|
||||
const ENV = {
|
||||
production: '{$PRODUCTION}',
|
||||
api: '{$API_URL}',
|
||||
irbUrl: '{$IRB_URL}',
|
||||
production: '$PRODUCTION',
|
||||
api: '$API_URL',
|
||||
irbUrl: '$IRB_URL',
|
||||
};
|
||||
</script>
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
|
|
Loading…
Reference in New Issue