From 847e15d2dbcf4548ba718d459f24d77866a2021f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=BD=20T=E1=BA=A1i=20Tr=C6=B0=E1=BB=9Dng?= Date: Wed, 18 Oct 2023 21:16:21 +0700 Subject: [PATCH] fix(nestjs): edit bullboard path have global prefix when using fastify --- packages/nestjs/src/bull-board.root-module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nestjs/src/bull-board.root-module.ts b/packages/nestjs/src/bull-board.root-module.ts index 5a93f019..9f8f85b4 100644 --- a/packages/nestjs/src/bull-board.root-module.ts +++ b/packages/nestjs/src/bull-board.root-module.ts @@ -29,7 +29,7 @@ export class BullBoardRootModule implements NestModule { if (isFastifyAdapter(this.adapter)) { this.adapterHost.httpAdapter .getInstance() - .register(this.adapter.registerPlugin(), {prefix: this.options.route}); + .register(this.adapter.registerPlugin(), {prefix: `${ globalPrefix }${ this.options.route }`}); return consumer .apply(this.options.middleware) @@ -75,4 +75,4 @@ export class BullBoardRootModule implements NestModule { ], }; } -} \ No newline at end of file +}