From 16bb3ff31d740bf542b96a557bf08f6ebbf32653 Mon Sep 17 00:00:00 2001 From: sealday Date: Tue, 23 Jul 2024 14:23:42 +0800 Subject: [PATCH] fix: add default extension ui path (#1371) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1371 --- .../@tachybase/plugin-adapter-bullmq/src/server/plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@tachybase/plugin-adapter-bullmq/src/server/plugin.ts b/packages/plugins/@tachybase/plugin-adapter-bullmq/src/server/plugin.ts index 0c449abef..896113fde 100644 --- a/packages/plugins/@tachybase/plugin-adapter-bullmq/src/server/plugin.ts +++ b/packages/plugins/@tachybase/plugin-adapter-bullmq/src/server/plugin.ts @@ -24,7 +24,8 @@ export class PluginAdapterBullmqServer extends Plugin { queues: [new BullMQAdapter(defaultQueue)], serverAdapter, }); - serverAdapter.setBasePath(process.env.EXTENSION_UI_BASE_PATH + 'mqui'); + const EXTENSION_UI_BASE_PATH = process.env.EXTENSION_UI_BASE_PATH || '/adapters/'; + serverAdapter.setBasePath(EXTENSION_UI_BASE_PATH + 'mqui'); this.app.use(serverAdapter.registerPlugin(), { before: 'bodyParser' }); }