This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/posts/2023/env-files-eleventy.md
Cory Dransfeldt 33ffc75598
fix: tags 404
2023-08-26 11:55:10 -07:00

14 lines
648 B
Markdown

---
date: '2023-03-24'
title: '.env files in Eleventy'
draft: false
tags: ['env', '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.<!-- excerpt -->
[^1]: Which is awesome — it works perfectly.