Task #6 - create ionic proxy for local development

This commit is contained in:
garrettmills 2020-02-07 21:19:16 -06:00
parent 31fdc2d249
commit 944185d829
4 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View File

@ -29,3 +29,4 @@ npm-debug.log*
/platforms
/plugins
/www
target-www**

View File

@ -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": {

View File

@ -1,5 +1,6 @@
{
"name": "frontend",
"integrations": {},
"type": "angular"
"type": "angular",
"proxy": "http://localhost:8000"
}

8
proxy.conf.json Normal file
View File

@ -0,0 +1,8 @@
{
"/link_api": {
"target": "http://localhost:8000",
"secure": false,
"logLevel": "debug",
"pathRewrite": {"^/link_api": ""}
}
}