Closed ihamlet closed 2 years ago
The current version of example code is using Redis (hosted by Upstash) as data caching layer to speed up API route fetching the post data from database.
UPSTASH_REDIS_REST_URL
is the environment variable for the Redis REST API endpoint. You can follow the instructions on Upstash Docs.
Error: Unable to find environment variable:
UPSTASH_REDIS_REST_URL
const redis = Redis.fromEnv()
The above code seems to need to configure an environment variable, but I don't know what to use.