import { envSchema, getRawEnv } from '../lib/env';

/**
 * Simple script to validate environment variables.
 * If validation fails, this script will exit with code 1.
 */
try {
  const env = envSchema.parse(getRawEnv());
  console.log('✅ Environment variables validated successfully.');
  console.log('Base URL:', env.NEXT_PUBLIC_BASE_URL);
} catch (error) {
  console.error('❌ Environment validation failed.');
  if (error instanceof Error) {
    console.error(error.message);
  }
  process.exit(1);
}
