server(themes): sync themes every 1 hour (roughly)

This commit is contained in:
Abdullah Atta
2026-01-03 14:36:41 +05:00
parent 81b1005b02
commit 756bb82fb7

View File

@@ -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", () => {