Next.js .env.test not loaded during `next dev` or `next start` without explicit NODE_ENV=test
Goal Run integration tests against a local Next.js development server using test-specific credentials stored in .env.test without ever exposing production secrets. Constraints and uncertainty Next.js documents a defined precedence for environment files ( .env.local , .env.development , .env.production , .env.test ), yet the framework does not automatically l