UNPKG

create-arktos

Version:

🚀 A modern Node.js backend boilerplate with TypeScript, Express, JWT authentication, Prisma ORM, PostgreSQL, and Resend email service. Includes complete authentication flow, security middleware, and database management.

15 lines (13 loc) • 371 B
import logger from './logger'; import { envSchema } from '../schemas'; export function validateEnv() { try { const env = envSchema.parse(process.env); logger.info('Environment validation successful'); return env; } catch (error) { logger.error('Environment validation failed:', error); process.exit(1); } } export const config = validateEnv();