-
Notifications
You must be signed in to change notification settings - Fork 87
chore: upgrade to blobs v8 #2595
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
Changes from all commits
64084b0
3d6d334
f07d8ec
d0e4a43
7307012
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import { getDeployStore, Store } from '@netlify/blobs' | ||
import { getDeployStore, GetWithMetadataOptions, Store } from '@netlify/blobs' | ||
|
||
const fetchBeforeNextPatchedIt = globalThis.fetch | ||
|
||
export const getRegionalBlobStore = (args: Parameters<typeof getDeployStore>[0] = {}): Store => { | ||
const options = typeof args === 'string' ? { name: args } : args | ||
export const getRegionalBlobStore = (args: GetWithMetadataOptions = {}): Store => { | ||
return getDeployStore({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found a nice type to use for this 👍 |
||
...options, | ||
...args, | ||
fetch: fetchBeforeNextPatchedIt, | ||
experimentalRegion: | ||
process.env.USE_REGIONAL_BLOBS?.toUpperCase() === 'TRUE' ? 'context' : undefined, | ||
region: process.env.USE_REGIONAL_BLOBS?.toUpperCase() === 'TRUE' ? undefined : 'us-east-2', | ||
}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flag has been fully rolled out