dword-design / nuxt-mail

Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Other
239 stars 18 forks source link

Using runtimeConfig to set message and smtp value #120

Closed fblackburn closed 18 hours ago

fblackburn commented 2 years ago

Hi,

I'm deploying my project using docker and would like to use some env variable to set the smtp and the message recipient depending on the current environment.

It would be nice to be able to set these via the runtimeConfig so I don't need to build a different image for all environment.

vanling commented 1 year ago

Same issue here for nuxt3

Unable to use process.env vars in the nuxtconfig, they are set on build. The NUXT_** env variables do work with above setup

https://nuxt.com/docs/guide/going-further/runtime-config