msanieM
Convex Community6mo ago
3 replies
msanie

Production Deployment Not Loading NEW Environment Variables (Request ID: 240ef5c77e57d120)

Hello Convex Team,

I already exchanged with the AI chatbox, but didn't get anywhere.

I am experiencing a critical issue where my production deployment is not loading any new environment variables set in the dashboard. Existing variables work correctly, but any newly added secrets are undefined.

The Anomaly:
* Working Keys: My pre-existing secrets like RESEND_API_KEY and the JWKS/JWT_PRIVATE_KEY auth keys are loading and working perfectly.
* Failing Keys: Any new keys I add, specifically STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET, are consistently undefined inside my Convex actions.

Irrefutable Proof:
To prove this is a platform sync issue, I ran a specific test:
1. I added a new environment variable in the production dashboard named DUMMY_TEST with a value of 1234.
2. I triggered a fresh deployment and called an action that logs this variable.
3. The server logs for Request ID 240ef5c77e57d120 confirm the result: [LOG] 'Attempting to read DUMMY_TEST value:' undefined.
This test proves that my deployment is not receiving any new secrets from the dashboard. Standard redeployments have not fixed this.

My Specific Question:
Could you please investigate Request ID 240ef5c77e57d120 for my deployment? The logs clearly show a failure to load a newly added DUMMY_TEST variable. Why is my production instance failing to sync with new secrets added to the dashboard, while older secrets continue to work?
Was this page helpful?