backend: add .env.test configuration file for environment settings

This commit is contained in:
Carlos Santos 2025-04-23 14:43:30 +02:00
parent 72b83d2349
commit ca59577fa5
2 changed files with 6 additions and 0 deletions

4
backend/.env.test Normal file
View File

@ -0,0 +1,4 @@
USE_HTTPS=false
MEET_LOG_LEVEL=error
SERVER_CORS_ORIGIN=*
MEET_WEBHOOK_ENABLED=false

View File

@ -7,6 +7,8 @@ if (process.env.MEET_CONFIG_DIR) {
envPath = process.env.MEET_CONFIG_DIR;
} else if (process.env.NODE_ENV === 'development') {
envPath = '.env.development';
} else if (process.env.NODE_ENV === 'test') {
envPath = '.env.test';
} else {
envPath = undefined;
}