aboutsummaryrefslogtreecommitdiff
path: root/vite.config.js
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-11 01:54:08 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-11 01:54:08 +1000
commit5fe71ea7b9d9a5d2dc6e8e5ce5b9193629eed74d (patch)
tree3b8b9d7299540a812ec93e224f8fc71249a98860 /vite.config.js
parenta8f80a02b88055cfcb45664ce3a3d24c2b2da98c (diff)
Make backend dev server script serve the image files
Previously, image files in backend/data/img were moved to, or symlinked from, public/. This needed to be changed before each build, otherwise vite would end up copying gigabytes of images.
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js
index 7352973..af88991 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -5,7 +5,7 @@ export default defineConfig({
base: '/',
plugins: [vue()],
server: {
- proxy: {'/data': 'http://localhost:8000'},
+ proxy: {'/data': 'http://localhost:8000', '/tolData': 'http://localhost:8000', },
watch: {
ignored: ['**/backend', '**/public']
},