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; declare var ENV;
export const environment: AppEnvironment = { export const environment: AppEnvironment = {
production: ENV && ENV.production === '{$PRODUCTION}' ? false : (ENV.production === 'true'), production: ENV && ENV.production === '$PRODUCTION' ? false : (ENV.production === 'true'),
api: ENV && ENV.api === '{$API_URL}' ? 'http://localhost:5000/v1.0' : ENV.api, api: ENV && ENV.api === '$API_URL' ? 'http://localhost:5000/v1.0' : ENV.api,
irbUrl: ENV && ENV.irbUrl === '{$IRB_URL}' ? 'http://localhost:5001' : ENV.irbUrl, irbUrl: ENV && ENV.irbUrl === '$IRB_URL' ? 'http://localhost:5001' : ENV.irbUrl,
}; };

View File

@ -6,9 +6,9 @@
<base href="/"> <base href="/">
<script> <script>
const ENV = { const ENV = {
production: '{$PRODUCTION}', production: '$PRODUCTION',
api: '{$API_URL}', api: '$API_URL',
irbUrl: '{$IRB_URL}', irbUrl: '$IRB_URL',
}; };
</script> </script>
<meta content="width=device-width, initial-scale=1" name="viewport"> <meta content="width=device-width, initial-scale=1" name="viewport">