production and staging(development)
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve --proxy-config src/proxy.conf.json",
|
||||
"start_dev_docker": "ng serve --proxy-config src/proxy.conf.docker.json",
|
||||
"start_dev": "ng serve --proxy-config src/proxy.conf.json",
|
||||
"start_prod": "ng serve --configuration production",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
@@ -55,4 +56,4 @@
|
||||
"karma-jasmine-html-reporter": "~2.1.0",
|
||||
"typescript": "~5.9.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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