mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-16 16:45:54 +08:00
Update index.ts
This commit is contained in:
parent
c9073a747c
commit
ffc3b7c5fb
@ -45,7 +45,6 @@ if (cluster.isMaster) {
|
|||||||
|
|
||||||
app.use(cors()); // Add this line to enable CORS
|
app.use(cors()); // Add this line to enable CORS
|
||||||
|
|
||||||
const queueRedis = new Redis(process.env.REDIS_URL);
|
|
||||||
|
|
||||||
const serverAdapter = new ExpressAdapter();
|
const serverAdapter = new ExpressAdapter();
|
||||||
serverAdapter.setBasePath(`/admin/${process.env.BULL_AUTH_KEY}/queues`);
|
serverAdapter.setBasePath(`/admin/${process.env.BULL_AUTH_KEY}/queues`);
|
||||||
@ -318,6 +317,8 @@ if (cluster.isMaster) {
|
|||||||
`/admin/${process.env.BULL_AUTH_KEY}/redis-health`,
|
`/admin/${process.env.BULL_AUTH_KEY}/redis-health`,
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
try {
|
try {
|
||||||
|
const queueRedis = new Redis(process.env.REDIS_URL);
|
||||||
|
|
||||||
const testKey = "test";
|
const testKey = "test";
|
||||||
const testValue = "test";
|
const testValue = "test";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user