2025-07-19 04:26:46 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2025-07-22 06:00:10 +08:00
|
|
|
// This script uses the shared env-utils to validate environment variables
|
|
|
|
import { loadRootEnv, validateEnv } from '@buster/env-utils';
|
2025-07-19 04:26:46 +08:00
|
|
|
|
2025-07-22 06:00:10 +08:00
|
|
|
// Load environment variables from root .env file
|
|
|
|
loadRootEnv();
|
2025-07-19 04:26:46 +08:00
|
|
|
|
2025-07-22 06:00:10 +08:00
|
|
|
// Define required environment variables for this package
|
|
|
|
const requiredEnv = {
|
2025-07-19 04:32:12 +08:00
|
|
|
DAYTONA_API_KEY: process.env.DAYTONA_API_KEY,
|
2025-07-19 04:26:46 +08:00
|
|
|
};
|
|
|
|
|
2025-07-22 06:00:10 +08:00
|
|
|
// Validate environment variables
|
|
|
|
const { hasErrors } = validateEnv(requiredEnv);
|
2025-07-19 04:26:46 +08:00
|
|
|
|
|
|
|
if (hasErrors) {
|
|
|
|
process.exit(1);
|
|
|
|
}
|