Vercel build fails with monorepo: `Error: [Upstash Redis] The 'url' property is missing or undefined in your Redis config.`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 595
- Forks
- 101
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 1
Description
I just abstracted @vercel/kv into a Turborepo package to use a shared client between my apps using createClient. My local builds are fine but on Vercel my build fails with the error in the title. Here's my client creation code:
import { createClient } from "@vercel/kv";
export const kv = createClient({
url: process.env.KV_REST_API_URL,
token: process.env.KV_REST_API_TOKEN,
});
My environment variables are stored in the root .env file.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shared Turborepo package, the root .env file, and the createClient call shown in the issue. Trace how environment variables reach that package during a Vercel build and reproduce the missing-url failure; done means the build receives the required Redis configuration without breaking local builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100