Fix Resend API key error during build

- Move Resend client instantiation from module level to function
- Add validation to skip placeholder API keys
- Set empty RESEND_API_KEY and GOOGLE_SERVICE_ACCOUNT_JSON during build
This commit is contained in:
Marco Gallegos
2026-01-18 15:08:17 -06:00
parent 0351d8ac9d
commit 8bc9c959b5
4 changed files with 51 additions and 157 deletions

View File

@@ -23,6 +23,8 @@ ENV NEXT_PUBLIC_SUPABASE_URL=https://placeholder.supabase.co
ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=placeholder-anon-key
ENV SUPABASE_SERVICE_ROLE_KEY=placeholder-service-role-key
ENV STRIPE_SECRET_KEY=placeholder
ENV RESEND_API_KEY=""
ENV GOOGLE_SERVICE_ACCOUNT_JSON=""
ENV NODE_OPTIONS="--max-old-space-size=16384"
ENV NEXT_ESLINT_IGNORE_DURING_BUILDS=true
ENV NEXT_PRIVATE_WORKERS=1