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

feat: add Vercel KV #2533

Merged
merged 2 commits into from Jan 2, 2024
Merged

feat: add Vercel KV #2533

merged 2 commits into from Jan 2, 2024

Conversation

prplecake
Copy link
Contributor

@prplecake prplecake commented Dec 27, 2023

Would fix #2516

Note: Unstorage's Vercel KV driver is currently in beta.

This appears to be working for my Vercel deployment (https://elk.compostintraining.club). I can verify there is data in Vercel's KV storage.
image

Copy link

stackblitz bot commented Dec 27, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Dec 27, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 07b9ca6
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/658c88bfd001c5000791dd68

Copy link

netlify bot commented Dec 27, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 07b9ca6
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/658c88bf16733800074491a6
😎 Deploy Preview https://deploy-preview-2533--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@prplecake prplecake changed the title Add Vercel KV feat: Add Vercel KV Dec 27, 2023
@danielroe danielroe changed the title feat: Add Vercel KV feat: add Vercel KV Jan 2, 2024
@danielroe danielroe added this pull request to the merge queue Jan 2, 2024
Merged via the queue into elk-zone:main with commit b016320 Jan 2, 2024
14 checks passed
HawtinZeng pushed a commit to HawtinZeng/elk that referenced this pull request Jan 7, 2024
maybeanerd pushed a commit to maybeanerd/crab that referenced this pull request Jan 28, 2024
@Kitanit
Copy link

Kitanit commented Mar 9, 2024

can you help me how to correctly write each parameter in ENV and what should I put in the key value?

image

@prplecake
Copy link
Contributor Author

@Kitanit

Setting the following environment variables was enough to get it working for me:

NUXT_STORAGE_DRIVER=vercel
KV_REST_API_URL=
KV_REST_API_TOKEN=

Where the URL and Token would be given to you by Vercel. env and base are optional according to the docs linked below.

More info on the kv driver: https://unstorage.unjs.io/drivers/vercel

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

Successfully merging this pull request may close these issues.

Add support for Vercel KV
3 participants