remove webpack

This commit is contained in:
2024-11-14 19:47:50 +08:00
parent 696be2a28c
commit 7ec8a001de
16 changed files with 1303 additions and 887 deletions

12
src/modules/bullmq.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Queue } from 'bullmq';
import { useConfig } from '@abearxiong/use-config';
const config = useConfig();
export const connection = {
host: config.redis?.host || 'localhost',
port: config.redis?.port || 6379,
};
export const quene = new Queue('test', {
connection: connection,
});