feat(server): start up folder checks (#12401)

This commit is contained in:
Jason Rasmussen
2024-09-07 13:21:25 -04:00
committed by GitHub
parent 2554cc96b0
commit 1e3052bd0b
9 changed files with 133 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ import { envName, excludePaths, isDev, resourcePaths, serverVersion } from 'src/
import { ILoggerRepository } from 'src/interfaces/logger.interface';
import { WebSocketAdapter } from 'src/middleware/websocket.adapter';
import { ApiService } from 'src/services/api.service';
import { isStartUpError } from 'src/utils/events';
import { otelStart } from 'src/utils/instrumentation';
import { useSwagger } from 'src/utils/misc';
@@ -73,6 +74,9 @@ async function bootstrap() {
}
bootstrap().catch((error) => {
console.error(error);
throw error;
if (!isStartUpError(error)) {
console.error(error);
}
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
});