Configure proxy for API requests and remove hardcoded apiUrl from environment files.
This commit is contained in:
@@ -76,6 +76,9 @@
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"options": {
|
||||
"proxyConfig": "proxy.conf.json"
|
||||
},
|
||||
"builder": "@angular/build:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"/api": {
|
||||
"target": "http://localhost:8080",
|
||||
"secure": false,
|
||||
"changeOrigin": true
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
apiUrl: 'https://beta.alttd.com',
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
export const environment = {
|
||||
production: false,
|
||||
apiUrl: 'http://localhost:8080',
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
apiUrl: 'https://alttd.com',
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
apiUrl: 'https://alttd.com',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user