From 55e8f9d02dc79f332447c31c25e11578d43a3456 Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 24 Oct 2024 16:33:42 +0200 Subject: [PATCH] Adjust base url for dev server (ng serve) --- package.json | 2 +- proxy.conf.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 60a1179..0638632 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "scripts": { "ng": "ng", - "start": "ng serve --proxy-config proxy.conf.json --port 4201", + "start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", diff --git a/proxy.conf.json b/proxy.conf.json index e24d739..7094876 100644 --- a/proxy.conf.json +++ b/proxy.conf.json @@ -1,17 +1,17 @@ { - "/static": { + "/treetrail/static": { "target": "http://127.0.0.1:5002", "secure": false }, - "/v1": { + "/treetrail/v1": { "target": "http://127.0.0.1:5002", "secure": false }, - "/attachment": { + "/treetrail/attachment": { "target": "http://127.0.0.1:5002", "secure": false }, - "/tiles": { + "/treetrail/tiles": { "target": "http://127.0.0.1:5002", "secure": false }