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.
Component or Package Name: preview-app
Component or Package Version: v1.7.4
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
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