feat: basic sharding support #154

Closed
Anri wants to merge 4 commits from sharding into main
2 changed files with 2 additions and 1 deletions
Showing only changes of commit e43234f790 - Show all commits

View file

@ -1,4 +1,4 @@
/** Load the app. */ /** Load the app */
const start_app = () => { const start_app = () => {
import("./load").then((l) => l.run().catch((error) => console.error(error))); import("./load").then((l) => l.run().catch((error) => console.error(error)));
}; };

View file

@ -8,6 +8,7 @@ const start_manager = () => {
manager.spawn(); manager.spawn();
}; };
// Load .env if not in prod
if (process.env.NODE_ENV !== "production") { if (process.env.NODE_ENV !== "production") {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore