mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix: 🐛 Use CommonJS resolve instead of ESM one in Bull-Board UI
This commit is contained in:
parent
fb84db3ea7
commit
048dd6b0ab
|
|
@ -7,7 +7,7 @@ index b7fa76b4861aefc96e27b3167b1511c3723ad318..c56d37721672b9ede3c85c84cb40c91c
|
|||
function createBullBoard({ queues, serverAdapter, options = { uiConfig: {} }, }) {
|
||||
const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = (0, queuesApi_1.getQueuesApi)(queues);
|
||||
- const uiBasePath = options.uiBasePath || path_1.default.dirname(eval(`require.resolve('@bull-board/ui/package.json')`));
|
||||
+ const uiBasePath = options.uiBasePath || path_1.default.dirname(import.meta.resolve('@bull-board/ui/package.json'));
|
||||
+ const uiBasePath = options.uiBasePath || path_1.default.dirname(import.meta.require.resolve('@bull-board/ui/package.json'));
|
||||
serverAdapter
|
||||
.setQueues(bullBoardQueues)
|
||||
.setViewsPath(path_1.default.join(uiBasePath, 'dist'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue