Note: This page covers Parcel 1, the documentation for Parcel 2 is being worked on here:

🌳 Environment Variables

Parcel uses dotenv to support loading environment variables from .env files.

.env files are to be stored alongside the package.json that contains your parcel-bundler dependency.

Parcel loads .env files with these specific names for the following NODE_ENV values:

valid .env filenames NODE_ENV=* NODE_ENV=test
.env ✔️ ✔️
.env.local ✔️ ✖️
.env.${NODE_ENV} ✔️ ✔️
.env.${NODE_ENV}.local ✔️ ✔️


Help us improve the docs

If something is missing or not entirely clear, please file an issue on the website repository or edit this page.