mirror of https://github.com/buster-so/buster.git
Update validate-env.js
This commit is contained in:
parent
f882fb6116
commit
340ce0fa7d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue