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
247 stars 18 forks source link

feat(index.js): use runtimeConfig to set options #250

Closed chrismarsh-hhl closed 1 month ago

chrismarsh-hhl commented 1 month ago

Nuxt allows you to use environment variables through useRuntimeConfig. This is preferable when you want different settings in different environments, and want to use secrets (e.g. SMTP username and password) without exposing them in nuxt.config.ts. This change adds runtimeConfig.mail options to the options object.

fix #120

dword-design commented 1 month ago

Thx!