first version

This commit is contained in:
2025-09-17 16:43:44 -05:00
parent 810fad4beb
commit 6d12e7e151
28 changed files with 939 additions and 153 deletions

14
app/lib/cron.ts Normal file
View File

@@ -0,0 +1,14 @@
import cron from 'node-cron';
import { syncAllDomains } from './sync';
console.log('Starting Cron Job for S3 Sync...');
cron.schedule('0 * * * *', async () => {
console.log('Running Sync...');
try {
await syncAllDomains();
console.log('Sync completed.');
} catch (error) {
console.error('Sync error:', error);
}
});