.env files in Eleventy

dotenv-flow:

dotenv-flow extends dotenv adding the ability to have multiple .env* files like .env.development, .env.test and .env.production, also allowing defined variables to be overwritten individually in the appropriate .env*.local file.

The Eleventy docs recommend the dotenv package for working with .env files[1], but I've found dotenv-flow to be a bit more useful inasmuch as support for .env* file patterns make development more convenient.


  1. Which is awesome — it works perfectly. ↩︎

Cory Dransfeldt Cory Dransfeldt

I'm a software developer in Camarillo, California. I enjoy hanging out with my beautiful family and 4 rescue dogs, technology, automation, music, writing, reading and tv and movies.