#Is it possible to set environment variables for Novu environments?

1 messages · Page 1 of 1 (latest)

bleak parcel
#

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?

bitter nebulaBOT
#

@bleak parcel, you just advanced to level 2!

crimson breach
#

Hi @bleak parcel 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

bleak parcel
#

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

stone violet
#

@bleak parcel

Would you mind sharing the current limitation with Novu V2 (aka echo)

bleak parcel
#

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.