Update validate-env.js

This commit is contained in:
Nate Kelley 2025-06-26 12:41:22 -06:00
parent f882fb6116
commit 340ce0fa7d
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,14 @@ config();
console.log('🔍 Validating environment variables...');
// Skip validation during Docker builds (environment variables are only available at runtime)
if (process.env.DOCKER_BUILD || process.env.CI || process.env.NODE_ENV === 'production') {
console.log(
'🐳 Docker/CI build detected - skipping environment validation (will validate at runtime)'
);
process.exit(0);
}
const env = {
DATABASE_URL: process.env.DATABASE_URL,
SUPABASE_URL: process.env.SUPABASE_URL,