Created
March 14, 2024 19:07
-
-
Save nehemiahj/67350d473e74238f93c899d73696fcda to your computer and use it in GitHub Desktop.
Vercel Edge Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { get, has, getAll } from '@vercel/edge-config'; | |
// To read a single key | |
const someValue = await get("someKey") | |
// To check if a key exists | |
const someValue = await has('someKey'); | |
// To read all the items in data store | |
const someValue = await getAll(); | |
// To read items in batch | |
const someValue = await getAll(['keyA', 'keyB']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment