Something went wrong. Try again.
A social knowledge tool for research trails, built on ATProto semble.so
Something went wrong. Try again.
1234567891011121314151617181920212223242526// IMPORTANT: Import instrument.ts first to initialize Sentry as early as possibleimport '../instrument';
import { EnvironmentConfigService } from '../shared/infrastructure/config/EnvironmentConfigService';import { SyncWorkerProcess } from '../shared/infrastructure/processes/SyncWorkerProcess';
async function main() { const configService = new EnvironmentConfigService(); const useInMemoryEvents = configService.shouldUseInMemoryEvents();
if (useInMemoryEvents) { console.log('[SYNC] Skipping sync worker - using in-memory events'); return; }
console.log('[SYNC] Starting sync worker...');
const syncWorkerProcess = new SyncWorkerProcess(configService); await syncWorkerProcess.start();}
main().catch((error) => { console.error('[SYNC] Failed to start sync worker:', error); process.exit(1);});