Upstash Redis
Last updated
Last updated
To track daily visitors, we have integrated Upstash Redis database into our app. Follow these steps to set it up:
Create an Upstash Account and Database
Go to
Create a new account if you don't have one
Once logged in, create a new Redis database
Retrieve Credentials After creating your database, you'll need to retrieve two important credentials:
UPSTASH_REDIS_REST_URL
UPSTASH_REDIS_REST_TOKEN
Configure Environment Variables
In your project's root directory, create or edit the .env
file
Add the following lines to the file:
Copy
Replace your_rest_url_here
and your_rest_token_here
with the actual values from Upstash