Skip to content

fix: handle undefined env values correctly when applying worker runtime env#1024

Merged
9aoy merged 1 commit intomainfrom
project-env
Mar 9, 2026
Merged

fix: handle undefined env values correctly when applying worker runtime env#1024
9aoy merged 1 commit intomainfrom
project-env

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Mar 9, 2026

Summary

handle undefined env values correctly when applying worker runtime env.

In Node.js, assigning undefined to process.env coerces it to the string "undefined".
As a result, process.env.aaaa became a string instead of being absent/undefined.

image ## Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@9aoy 9aoy merged commit 6e2d562 into main Mar 9, 2026
10 checks passed
@9aoy 9aoy deleted the project-env branch March 9, 2026 06:30
@9aoy 9aoy mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant