Next.js Discord

Discord Forum

Env on vercel

Unanswered
Cornish Rex posted this in #help-forum
Open in Discord
Cornish RexOP
If you update an env variable in Vercel, then deploy it, and then refresh on that env page, that value is empty again.

9 Replies

@Cornish Rex If you update an env variable in Vercel, then deploy it, and then refresh on that env page, that value is empty again.
maybe the page is clientside rendered and like that the value will automatically be removed. Give us more context please
@B33fb0n3 maybe the page is clientside rendered and like that the value will automatically be removed. Give us more context please
Cornish RexOP
It concerns the env settings page on Vercel itself.
@Cornish Rex It concerns the env settings page on Vercel itself.
Normally that’s not the issue. Provide more context and we can help you better
@B33fb0n3 Normally that’s not the issue. Provide more context and we can help you better
Cornish RexOP
I don't think I can give any more context than this, but if I deploy a site via Vercel and then set a variable in the env, for example a better_auth URL, and then save and redeploy, it doesn't save that key.
Can you explain further what it means „it doesn’t save that key“. Like do you get an error message, or will it just fade away, or does it animate out, or do you get an digest or … your next message must contain more context, else I won’t answer anymore
Cornish RexOP
I click save, then click redeploy in the bottom right of that notification, and then go to the deployment. As soon as it shows ready, I go back to environment and then that key value is empty again.
it sounds like a vercel bug if its not saving - nothing really related to nextjs
so best chance is their support i guess
Cornish RexOP
allright