Task #6 - create ionic proxy for local development
This commit is contained in:
parent
31fdc2d249
commit
944185d829
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,3 +29,4 @@ npm-debug.log*
|
||||
/platforms
|
||||
/plugins
|
||||
/www
|
||||
target-www**
|
||||
|
@ -74,7 +74,8 @@
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "app:build"
|
||||
"browserTarget": "app:build",
|
||||
"proxyConfig": "proxy.conf.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"integrations": {},
|
||||
"type": "angular"
|
||||
"type": "angular",
|
||||
"proxy": "http://localhost:8000"
|
||||
}
|
||||
|
8
proxy.conf.json
Normal file
8
proxy.conf.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"/link_api": {
|
||||
"target": "http://localhost:8000",
|
||||
"secure": false,
|
||||
"logLevel": "debug",
|
||||
"pathRewrite": {"^/link_api": ""}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user