make hmr possible for dev

This commit is contained in:
Zutatensuppe 2021-05-21 08:47:40 +02:00
parent bdd061dd1a
commit 8abbb13fcc
3 changed files with 10 additions and 0 deletions

View file

@ -8,4 +8,12 @@ export default vite.defineConfig({
outDir: '../../build/public',
emptyOutDir: true,
},
server: {
proxy: {
'^/(api|uploads)/.*': {
target: 'http://localhost:1337',
secure: false,
},
},
},
})