[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # Configuration Error: The SUPABASE_SERVICE_ROLE_KEY environment variable is not available at runtime 37 views · 0 likes · 3 posts LN (@louisnzavi) · 2025-12-07 <!-- I have set the SUPABASE_SERVICE_ROLE_KEY environment variable in my Vercel project through both the Dashboard and CLI. I can confirm the variable exists using `vercel env ls`, and it's properly configured with the Production environment selected. However, the variable is not available at runtime in my production API routes. I created a diagnostic endpoint that shows the variable is `undefined` and doesn't exist in `Object.keys(process.env)`. I've attempted multiple fixes: redeploying multiple times, verifying the Production checkbox is checked, trying the NEXT_PUBLIC_ prefix, using the Vercel CLI method, and adding fallback checks in my code. The issue persists across all methods. This pattern (old variables work, new variable doesn't) suggests a platform-level environment variable injection issue affecting newly added variables on my project. Please assist. Thank you --> <!-- Current versus Expected behavior --> <!-- Code, configuration, and steps that reproduce this issue --> <!-- Project information (URL, framework, environment, project settings) --> Jacob Paris (@jacobparis) · 2025-12-11 Can you describe more about what issue you're running into? Jericoaragon (@jericoaragon) · 2026-01-14 Can you share more information?