Is it possible to set environment variables for Novu environments?
I am trying to reference some variables in my email/in app steps, such as domains that can change between development vs production environment. Is there any way we can set these within Novu, or will we have to send it as part of the payload?
5 Replies
@fyeung, you just advanced to level 2!
Hi @fyeung have you tried the "@novu/framework" sdk? It allows you to specify run-time dynamic variables as part of your templates. Also allows you to utilize email templating libraries like React Email and Mjml
Yeah we have tried using echo before, which i hear is the same. Doesn't work well with our architecture at the moment, but we may revisit it in the future
@fyeung
Would you mind sharing the current limitation with Novu V2 (aka echo)
It mainly had to do with the fact that we just wanted something to sync static workflows and make use of our own react components, but not have to have it running constantly to re-render these workflows.
We also wanted to host it serverless via aws lambda, but it was a bit more involved having to write custom handlers for the requests.
There were a few other key points we shared with out Novu rep.
it was ultimately a lot faster just manually creating these workflows within Novu as a first adoption attempt