868 B
868 B
date | title | description | draft | tags | ||
---|---|---|---|---|---|---|
2023-03-24 | .env files in Eleventy | The Eleventy docs recommend the dotenv package for working with .env files, but I've found dotenv-flow to be a bit more useful inasmuch as support for .env* file patterns make development more convenient. | false |
|
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
files1, but I've found dotenv-flow
to be a bit more useful inasmuch as support for .env*
file patterns make development more convenient.
-
Which is awesome — it works perfectly. ↩︎