Skip to content

Commit

Permalink
chore(be): 🐛 import missing module for serverless compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Jul 2, 2024
1 parent d706af5 commit aca5955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions serverless/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const moduleAlias = require('module-alias');
const tsConfigPaths = require('tsconfig-paths');
const tsConfig = require('./tsconfig.json');

/**
* Import the modules that serverless couldn't find in node_modules
*/
require('@bull-board/ui/package.json');

const baseUrl = tsConfig?.compilerOptions?.baseUrl ?? '../';

// Register tsconfig-paths, use for TS
Expand Down Expand Up @@ -38,5 +43,6 @@ require('../../apps/be/src/app/index');

/**
* Main file to run the server
* KEEP IT AS LAST REQUIRE IN THIS FILE
*/
require('../../apps/be/src/main');

0 comments on commit aca5955

Please sign in to comment.