nuxt-resend
nuxt-resend copied to clipboard
Problems with nuxt on cloudflare pages
If you deploy to cloudflare pages with environment variables set through the web dashboard this doesn't currently pick up the API key from those variables.
You can add
resend: { apiKey: process.env.NUXT_RESEND_API_KEY || '', },
to your nuxt.config.ts file to fix it but the docs as written might confuse people. Thanks for the library, very useful!
Thanks for the heads-up! Maybe we can fix this by setting it as a default here?
Well your call, personally I'd just update the docs. Hopefully cloudflare or Nuxt will improve this at some point!