diff --git a/flake.nix b/flake.nix index f7dd07f..ba2a914 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ in rec { packages.bayshore = pkgs.buildNpmPackage { pname = "bayshore"; - version = "1.0.4"; + version = "1.0.5"; src = ./.; npmDepsHash = "sha256-7iVoTJv5rvdiUWyhrDOGEboOo1sdQ7YvZOqbgvz/mF8="; diff --git a/src/index.ts b/src/index.ts index 7bccb26..704e445 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,6 +29,7 @@ import { Config } from './config'; import * as Sentry from '@sentry/node'; import * as Tracing from '@sentry/tracing'; import * as common from './modules/util/common'; +import path from 'path'; globalAgent.options.keepAlive = true; @@ -112,7 +113,7 @@ allnetApp.use((req, res, next) => { }); // Get all of the files in the modules directory -let dirs = fs.readdirSync('dist/modules'); +let dirs = fs.readdirSync(path.join(path.dirname(__filename), 'modules')); // Loop over the files for (let i of dirs) {