/app/page.tsx
with the following code:
Redis.fromEnv()
automatically loads UPSTASH_REDIS_REST_URL
and
UPSTASH_REDIS_REST_TOKEN
from the environment variables. We’ll set them later.
UPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
into your .env
file.
Let’s quickly add some data to redis. Go to the CLI
tab and run the following
commands
npm run dev
and check http://localhost:3000/
Deploy your app with npx vercel