-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Upgrade blobs version to latest * chore: replace references to experimental region * fix: feature has been fully released and flag defaults to true
- Loading branch information
Showing
5 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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({ | ||
...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', | ||
}) | ||
} |
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