FrailF
Convex Community4mo ago
5 replies
Frail

Convex + Better Auth Local Install Missing API Key (Resend)

After following local install in https://convex-better-auth.netlify.app/local-install, I've been having this error "Failed to analyze adapter.js: Uncaught Error: Missing API key. Pass it to the constructor new Resend("re_123")" during build time, I'm using the actual resend package for auth related emails since I can't use the resend component.

RESEND_API_KEY is already in my .env.local as well as in convex cloud envs, When passing the actual api as string it works, when passing env in the build command it works. Problem is I can't do that in prod.

Anyone having this issue?

Stack: Sveltekit, Convex, Better Auth, Resend
Was this page helpful?