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: throw error on missing config properties #15

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

Makes the blobs client throw an error on get(), set() and delete() operations if the store is missing required configuration properties, such as the authentication token or the site ID.

This is useful so that we can always instantiate a store, even if it is a no-op store in cases where the information required is missing. For example, we'll use this when gradually rolling out support for the blob store in edge functions.

@eduardoboucas eduardoboucas requested a review from a team as a code owner July 19, 2023 08:30
@netlify
Copy link

netlify bot commented Jul 19, 2023

Deploy Preview for blobs-js ready!

Name Link
🔨 Latest commit 2295503
🔍 Latest deploy log https://app.netlify.com/sites/blobs-js/deploys/64b79f23d3fc4e0008d5d99c
😎 Deploy Preview https://deploy-preview-15--blobs-js.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.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 19, 2023
@eduardoboucas eduardoboucas merged commit 10f30a8 into main Jul 19, 2023
15 checks passed
@eduardoboucas eduardoboucas deleted the feat/throw-missing-config branch October 24, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants