Skip to content

Commit

Permalink
fix: add a new options config to setup uiBasePath by the user, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed May 16, 2023
1 parent d05c4f9 commit 73f2ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createBullBoard({
options?: BoardOptions;
}) {
const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = getQueuesApi(queues);
const uiBasePath = path.dirname(eval(`require.resolve('@bull-board/ui/package.json')`));
const uiBasePath = options.uiBasePath || path.dirname(eval(`require.resolve('@bull-board/ui/package.json')`));

serverAdapter
.setQueues(bullBoardQueues)
Expand Down
1 change: 1 addition & 0 deletions packages/api/typings/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export interface Pagination {
export type FormatterField = 'data' | 'returnValue' | 'name';

export type BoardOptions = {
uiBasePath?: string;
uiConfig: UIConfig;
};

Expand Down

0 comments on commit 73f2ccc

Please sign in to comment.