Removes curly braces from envsubst template strings

This commit is contained in:
Aaron Louie 2020-04-15 09:47:33 -04:00
parent f74580ba63
commit 0b7851bc0b
2 changed files with 6 additions and 6 deletions

View File

@ -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,
};

View File

@ -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">