feat: poll on windows

This commit is contained in:
zkldi
2023-02-10 22:57:58 +00:00
parent fd1dafbfb0
commit fc5acdee04
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -8,4 +8,8 @@ VITE_MIN_CLIENT_ID=""
VITE_FLO_CLIENT_ID=""
VITE_RULES_READ_TIME=30
VITE_IS_LOCAL_DEV=true
TACHI_NAME="Tachi Local Dev"
TACHI_NAME="Tachi Local Dev"
# turn this off if you're on linux for actually good performance
# this needs to be on for windows because lol lmao
FORCE_FS_POLLING="true"
+3
View File
@@ -82,6 +82,9 @@ export default defineConfig(() => {
server: {
port: 3000,
host: true,
watch: {
usePolling: process.env.FORCE_FS_POLLING,
}
},
preview: {
port: 3000,