fix: add default extension ui path (#1371)

Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1371
This commit is contained in:
sealday 2024-07-23 14:23:42 +08:00
parent 28dc67bb0d
commit 16bb3ff31d

View File

@ -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' });
}