Heroku will automatically configure Upstash Redis database for you.
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
For this to work, create UPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
env variables in a .env file.
Open http://localhost:3000 with your browser to see the result.