shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
897 stars 28 forks source link

Add support for accessing full process.env #139

Closed Gobot1234 closed 5 months ago

Gobot1234 commented 5 months ago

Vite currently prohibits any env vars that aren't prefixed with VITE_ from being forwarded to the preview app. I don't think there's any reason that the locally hosted email previews should do this.

Expected Behavior / Situation

Being able to access all env vars when previewing emails

Actual Behavior / Situation

Most env vars are undefined

Modification Proposal

Add an include-env flag to opt into this behaviour to forward all env vars to the previewer