feat: certificates, landing pages, ai tutor, website update, compliance

This commit is contained in:
Rotimi Best
2026-05-18 03:47:22 +01:00
parent c31ad63955
commit ac3a2c14a7
644 changed files with 56050 additions and 5439 deletions
+25
View File
@@ -0,0 +1,25 @@
import 'dotenv/config';
import { env } from './config/env';
import { warnIfFfmpegMissing } from './utils/ffmpeg';
import { log } from './utils/logger';
void warnIfFfmpegMissing();
if (!env.REDIS_URL) {
throw new Error('REDIS_URL is required to start a worker process.');
}
log.info('worker-bootstrap', {
nodeEnv: env.NODE_ENV,
pid: process.pid,
hasOpenAi: Boolean(env.OPENAI_API_KEY)
});
process.on('uncaughtException', (error) => {
log.error('uncaught-exception', { message: error.message, stack: error.stack });
});
process.on('unhandledRejection', (reason) => {
log.error('unhandled-rejection', { reason: reason instanceof Error ? reason.message : String(reason) });
});