From 5fe71ea7b9d9a5d2dc6e8e5ce5b9193629eed74d Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 11 Jul 2022 01:54:08 +1000 Subject: 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. --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vite.config.js') 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'] }, -- cgit v1.2.3