mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
server(themes): sync themes every 1 hour (roughly)
This commit is contained in:
@@ -32,6 +32,9 @@ server.listen(PORT, HOST);
|
||||
console.log(`Server started successfully on: http://${HOST}:${PORT}/`);
|
||||
|
||||
syncThemes();
|
||||
setInterval(() => {
|
||||
syncThemes();
|
||||
}, 1000 * 60 * 60); // every hour
|
||||
|
||||
if (import.meta.hot) {
|
||||
import.meta.hot.on("vite:beforeFullReload", () => {
|
||||
|
||||
Reference in New Issue
Block a user