mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-23 01:12:37 +00:00
Handle config initialisation error on app bootstrap
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
994bd7ae64
commit
a04a111293
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ async function bootstrap(): Promise<void> {
|
|||
const appConfig = configService.get<AppConfig>('appConfig');
|
||||
const mediaConfig = configService.get<MediaConfig>('mediaConfig');
|
||||
|
||||
if (!appConfig || !mediaConfig) {
|
||||
logger.error('Could not initialize config, aborting.', 'AppBootstrap');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
setupPublicApiDocs(app);
|
||||
logger.log(
|
||||
`Serving OpenAPI docs for public api under '/apidoc'`,
|
||||
|
|
Loading…
Reference in a new issue