Merge pull request #29 from HideyoshiNakazone/hotfix-env

Fixes Env Variables
This commit is contained in:
2023-10-11 21:19:05 -03:00
committed by GitHub
5 changed files with 5 additions and 22 deletions

View File

@@ -79,16 +79,6 @@
"options": {
"browserTarget": "frontend-hideyoshi.com:build:build"
},
"configurations": {
"production": {
"browserTarget": "frontend-hideyoshi.com:build:production",
"proxyConfig": "src/proxy.conf.json"
},
"development": {
"browserTarget": "frontend-hideyoshi.com:build:development",
"proxyConfig": "src/proxy.conf.json"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {

View File

@@ -2,6 +2,6 @@
window['env'] = window['env'] || {};
// Environment variables
window['env']['backendPath'] = '${BACKEND_URL}';
window['env']['backendOAuthPath'] = '${BACKEND_OAUTH_URL}';
window['env']['BACKEND_URL'] = '${BACKEND_URL}';
window['env']['BACKEND_OAUTH_URL'] = '${BACKEND_OAUTH_URL}';
})(this);

View File

@@ -1,5 +1,5 @@
export const environment = {
production: true,
backendPath: (<any>window).env['BACKEND_URL'],
backendOAuthPath: (<any>window).env['BACKEND_OAUTH_URL']
backendPath: (<any>window)['env']['BACKEND_URL'],
backendOAuthPath: (<any>window)['env']['BACKEND_OAUTH_URL']
};

View File

@@ -21,7 +21,7 @@
<link rel="preconnect" href="https://hideyoshi-portfolio-dev.s3.amazonaws.com">
<!-- Loading environment variables -->
<script src="assets/env.js"></script>
<script src="./assets/env.js"></script>
</head>
<body>

View File

@@ -1,7 +0,0 @@
{
"/api": {
"target": "http://localhost:8070",
"secure": false,
"pathRewrite": {"^/api" : ""}
}
}