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

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>🧩 jigsaw.hyottoko.club</title>
<script type="module" crossorigin src="/assets/index.b49dadca.js"></script>

View file

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/style.css" />
<title>🧩 jigsaw.hyottoko.club</title>
</head>

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,
},
},
},
})