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;
|
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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue