0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

Add Cloudflare Worker environment variable auto-population (#3439)

Fixes #3438

This change adds the `nodejs_compat_populate_process_env` flag to the
Cloudflare Worker's compatibility flags, which automatically populates
`process.env` with values from the `env` object. As a result, the manual
code that previously copied each key from `env` to `process.env` could
be removed.

---

For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/mastra-ai/mastra/pull/3439?shareId=52e1095e-0cb9-4925-824d-d46b6def9681).

---------

Co-authored-by: Ward Peeters <ward@coding-tech.com>
This commit is contained in:
Ryan Mierzejewski 2025-04-04 03:08:33 -05:00 • committed by GitHub
commit 9b24aebf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions