Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel build fails with monorepo: Error: [Upstash Redis] The 'url' property is missing or undefined in your Redis config. #759

Open
ahkhanjani opened this issue Sep 25, 2024 · 0 comments

Comments

@ahkhanjani
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant