nuxt-resend icon indicating copy to clipboard operation
nuxt-resend copied to clipboard

Problems with nuxt on cloudflare pages

Open flt-james opened this issue 7 months ago • 2 comments

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!

flt-james avatar May 25 '25 15:05 flt-james

Thanks for the heads-up! Maybe we can fix this by setting it as a default here?

GreenmeisterDavid avatar Jun 03 '25 18:06 GreenmeisterDavid

Well your call, personally I'd just update the docs. Hopefully cloudflare or Nuxt will improve this at some point!

flt-james avatar Jun 03 '25 19:06 flt-james