Skip to content

Commit 4c15953

Browse files
authored
Add version poll interval (#529)
1 parent b44b5c0 commit 4c15953

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

svelte.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ const config = {
4040
$css: './src/app.css',
4141
'$posts/*': '.velite/*'
4242
},
43+
version: {
44+
name: process.env.PUBLIC_COMMIT_HASH ?? undefined,
45+
pollInterval: 1000 * 60 // 1 minute
46+
}
4347
},
4448
// Only way I found to hide warnings from node_modules that doesn't break everything
4549
// vitePlugin: { exclude: ['**/node_modules/**'] } doesn't work

0 commit comments

Comments
 (0)