N
Novu5mo ago
fyeung

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
Novu_Bot
Novu_Bot5mo ago
@fyeung, you just advanced to level 2!
Dima Grossman
Dima Grossman5mo ago
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
fyeung
fyeungOP5mo ago
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
Pawan Jain
Pawan Jain5mo ago
@fyeung Would you mind sharing the current limitation with Novu V2 (aka echo)
fyeung
fyeungOP5mo ago
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
Want results from more Discord servers?
Add your server