- 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.
12 lines
237 B
TypeScript
12 lines
237 B
TypeScript
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,
|
|
};
|