Skip to content

Commit e77eeb8

Browse files
committed
chore(vite): add web update notice
1 parent ca35521 commit e77eeb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ export default defineConfig({
3636
],
3737
}),
3838
webUpdateNotice({
39-
hiddenDefaultNotification: true,
39+
notificationProps: {
40+
title: 'New version',
41+
description: 'An update available, please refresh the page to get latest features and bug fixes!',
42+
buttonText: 'refresh',
43+
dismissButtonText: 'cancel',
44+
},
45+
checkInterval: 1 * 60 * 1000,
4046
}),
4147
],
4248
clearScreen: false,

0 commit comments

Comments
 (0)