add support for environment variables #90

Closed
opened 2025-11-18 20:22:45 +01:00 by Moiety · 3 comments
Moiety commented 2025-11-18 20:22:45 +01:00 (Migrated from codeberg.org)
[Managing `.env` Variables](https://11ty.rocks/tips/env-variables/)
Moiety commented 2025-11-21 15:30:02 +01:00 (Migrated from codeberg.org)

is there some reason i should have this? #87 and #97 seem to indicate a need. can those be solved in a different way?

Node documentation suggests to keep prod and dev environments as close as you can. which i can see the benefit of that.

is there some reason i should have this? #87 and #97 seem to indicate a need. can those be solved in a different way? [Node documentation](https://nodejs.org/en/learn/getting-started/nodejs-the-difference-between-development-and-production) suggests to keep prod and dev environments as close as you can. which i can see the benefit of that.
Moiety commented 2025-11-21 15:41:32 +01:00 (Migrated from codeberg.org)
- [Watch Files and use Development Servers](https://www.11ty.dev/docs/watch-serve/) - [Eleventy Dev Server](https://www.11ty.dev/docs/dev-server/)
Moiety commented 2025-11-29 23:13:06 +01:00 (Migrated from codeberg.org)

11ty has a process.env.ELEVENTY_RUN_MODE env variable that’s either serve, watch, or build.

further documentation on the 11ty website.

11ty has a `process.env.ELEVENTY_RUN_MODE` env variable that’s either `serve`, `watch`, or `build`. further [documentation on the 11ty website](https://www.11ty.dev/docs/environment-vars/#eleventy-supplied).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
zoe/moiety.me#90
No description provided.