From 8abbb13fcc8a0155085bea2f5f77ceb9312ebbc1 Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Fri, 21 May 2021 08:47:40 +0200 Subject: [PATCH] make hmr possible for dev --- build/public/index.html | 1 + src/frontend/index.html | 1 + vite.config.js | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/build/public/index.html b/build/public/index.html index 9d62e70..0dfa3c3 100644 --- a/build/public/index.html +++ b/build/public/index.html @@ -1,6 +1,7 @@ + 🧩 jigsaw.hyottoko.club diff --git a/src/frontend/index.html b/src/frontend/index.html index 60a9c1a..0b1c8ee 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -1,6 +1,7 @@ + 🧩 jigsaw.hyottoko.club diff --git a/vite.config.js b/vite.config.js index d272e64..7d63d4d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,4 +8,12 @@ export default vite.defineConfig({ outDir: '../../build/public', emptyOutDir: true, }, + server: { + proxy: { + '^/(api|uploads)/.*': { + target: 'http://localhost:1337', + secure: false, + }, + }, + }, })