feat: initialize worker for website generator with GitHub deployment functionality

- Added package.json for project dependencies and scripts.
- Created redis.ts for Redis connection configuration.
- Set up tsconfig.json for TypeScript compilation settings.
- Implemented worker.ts to handle GitHub repository deployments using BullMQ and Octokit.
This commit is contained in:
AmanDevelops
2026-01-07 23:55:00 +05:30
commit 1abbe6460c
10 changed files with 1506 additions and 0 deletions

11
redis.ts Normal file
View File

@@ -0,0 +1,11 @@
import type { ConnectionOptions } from "bullmq";
const { REDIS_URL } = process.env;
if (!REDIS_URL) {
throw new Error("Missing REDIS_URL environment variable");
}
export const redisConfig: ConnectionOptions = {
url: REDIS_URL,
};