mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix vite reloading during e2e tests
The issue seems to have been linked to the fact that we triggers incorrect refresh through fsEvents. Even tough there are no changes on the local file system, it requests full reload after 1-2 min. Disabling fsEvents in the vite.config.ts prevents this to happen and per extension, avoid the problem. source: https://stackoverflow.com/a/75238360 Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -22,6 +22,10 @@ export default defineConfig({
|
||||
server: {
|
||||
host: "localhost",
|
||||
port: 3000,
|
||||
watch: {
|
||||
// reference: https://stackoverflow.com/a/75238360
|
||||
useFsEvents: false,
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user