diff --git a/src/index.ts b/src/index.ts index 05c66f3c7..2faa911c1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -165,6 +165,9 @@ export default async function createApp(): Promise { application.logger.level = process.env.LOG_LEVEL; application.logger.info('Starting application instance...'); + // Validate environment variables + if (!process.env.NAME) throw new Error('NAME environment variable is not set.'); + // Create folders for disk storage initializeDiskStorage();