10LOC

#dotenv

Bunintermediate

Bun's automatic .env loading vs the dotenv package

declare module "bun" {
  interface Env {
    DATABASE_URL: string;
    DEBUG?: string;
  }

Bun parses .env, .env.local, and .env.production automatically before your code runs, so import 'dotenv/config' is not just unnecessary but dead weight.