Skip to content

Commit

Permalink
fix: add validation for NAME environment variable (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSamuel committed Sep 11, 2024
1 parent 747ed7a commit fc13084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ export default async function createApp(): Promise<Application> {
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();

Expand Down

0 comments on commit fc13084

Please sign in to comment.