Next.js Discord

Discord Forum

Redis Error on vercel build

Unanswered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Alligator mississippiensisOP
Error: Unable to find environment variable: UPSTASH_REDIS_REST_URL

36 Replies

Alligator mississippiensisOP
do i need to edit my env and add UPSTASH_REDIS_REST_URL? if so where do i get it from
Netherland Dwarf
@Alligator mississippiensis
Did you follow the docs
Of upstash
Alligator mississippiensisOP
its just been stuck on this page for llike 10 minutes
Netherland Dwarf
Also did you deploy with vercel
@Netherland Dwarf Also did you deploy with vercel
Alligator mississippiensisOP
ye
Netherland Dwarf
You have to add the secret keys in your app under settings
https://console.upstash.com/login

Then you click create a redis intstance after logging in
Did you do that?
Alligator mississippiensisOP
yeah
Netherland Dwarf
If stuck loading click refresh
Alligator mississippiensisOP
its been on the same page for a bit
Netherland Dwarf
And double check
Hmmm can you try logging in again
And check your redis dashboard
To see if it finished installing
Assuming you followed the exact steps
It should show your redis tokens
Alligator mississippiensisOP
if i go to the dash it just redirects me to the ref ink
Netherland Dwarf
To the loading screen?
Alligator mississippiensisOP
no to the create bit
Netherland Dwarf
Could you show?
Alligator mississippiensisOP
ok i opened an incognito tab it works now
Netherland Dwarf
Ok
Are you able to get your tokens
Alligator mississippiensisOP
yes
Netherland Dwarf
Okay so do you know what to do now?
Alligator mississippiensisOP
yeah paste them in the env
i think
Netherland Dwarf
Right but in vercel
You have to add them there too
Alligator mississippiensisOP
storage?
Netherland Dwarf
Also im assuming that your redis tokens are only used one the server side and not on any client comp