# @next/env

> Next.js dotenv file loading

Latest version **16.3.5** (published 2026-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @next/env
pnpm add @next/env
yarn add @next/env
bun add @next/env
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 16.3.5 |
| Published | 2026-09-11 |
| First published | 2020-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 142276 |
| Author | Next.js Team |
| Maintainers | vercel-release-bot, matt.straka |
| Keywords | react, next, next.js, dotenv |

## Links

- npm: https://www.npmjs.com/package/@next/env
- Repository: https://github.com/vercel/next.js
- Homepage: https://github.com/vercel/next.js#readme
- Issues: https://github.com/vercel/next.js/issues
- npm.io page: https://npm.io/package/@next/env

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 16.3.5 (latest) — 2026-09-11
- 16.4.0-canary.29 (canary) — 2026-09-14
- 15.5.25 (backport) — 2026-08-31
- 16.3.0-preview.10 (preview) — 2026-07-28
- 15.0.8 (next-15-0-0) — 2026-01-26
- 15.1.12 (next-15-0) — 2026-01-26
- 15.2.9 (next-15-2) — 2026-01-26
- 15.3.9 (next-15-3) — 2026-01-26
- 14.2.35 (next-14) — 2025-12-11
- 16.0.0-beta.0 (beta) — 2025-10-10
- 12.3.7 (next-12-3-2) — 2025-03-28
- 13.5.11 (next-13) — 2025-03-27
- 15.0.0-rc.1 (rc) — 2024-10-15
- 14.1.1 (next-14-1) — 2024-02-29
- 12.2.6 (next-12-2-6) — 2022-09-29
- … 2986 more at https://npm.io/package/@next/env/versions

## README

# `@next/env`

Next.js' util for loading dotenv files in with the proper priorities

---
_Source: https://npm.io/package/@next/env · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
