platform icon indicating copy to clipboard operation
platform copied to clipboard

[FEATURE REQUEST] Support global environment variables in templates

Open wildsurfer opened this issue 3 months ago • 0 comments

I would like to have access to environment variables defined in the .env file inside email, SMS, Webhook and push templates.

Use Case

I run separate Parcelvoy instances for each environment (prod/dev/staging). Currently, I have to manually update templates whenever a domain or environment-specific value changes. This is error-prone and time-consuming.

Proposed Behavior • Allow templates to reference global environment variables directly (e.g., {{ env.CUSTOM_VARIABLE_NAME }}. • This would make it possible to automatically insert environment-specific values such as domain names into URLs without editing each template manually. • Developers could reuse the same template source across environments by simply relying on .env configuration.

Benefits • Reduces manual overhead when managing multiple environments. • Minimizes risk of incorrect links or values in templates. • Improves portability and reusability of templates.

P.S: Thanks for a great product! Exactly what I was looking for!

wildsurfer avatar Sep 17 '25 07:09 wildsurfer