production and staging(development)
This commit is contained in:
@@ -17,7 +17,7 @@ export class GlobalConstants {
|
||||
return `${environment.host_name}/api`;
|
||||
}else {
|
||||
//return `${environment.host_name}:${environment.port}/api`;
|
||||
return `/api`; // in serve mode used proxy (proxy.conf.json)
|
||||
return `/api`; // in serve mode used proxy (proxy.conf.docker.json)
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const environment = {
|
||||
default_page: 'main/tutorials/tutorials-all',
|
||||
port: 8080,
|
||||
port: 8081,
|
||||
fromWeb: false,
|
||||
production: false,
|
||||
host_name: 'http://localhost',
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"/api/**": {
|
||||
"target": "http://localhost:8081",
|
||||
"secure": false,
|
||||
"changeOrigin": true,
|
||||
"logLevel": "debug",
|
||||
"pathRewrite": {"^/api" : "http://localhost:8081/api"}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user