I’m trying to use the blob store API from an edge function using NextJS, but any call I make to getStore fails with this error when I run my site using netlify dev:
⨯ MissingBlobsEnvironmentError: The environment has not been configured to use Netlify Blobs. To use it manually, supply the following properties when creating a store: siteID, token
It’s not clear where I’m supposed to get a token, and the fact that I need one at all seems kind of suspicious since the blobs page doesn’t say anything about needing a token or site ID.
My site name is spelling-bee-helper, but I haven’t uploaded any of my test code yet.
I’ve been trying to get blobs working with a site I’ve deployed to Netlify, but when using the following syntax:
const store = getStore('foo');
and got exactly the same issue: MissingBlobsEnvironmentError: The environment has not been configured to use Netlify Blobs. To use it manually, supply the following properties when creating a store: siteID, token
I also had a site linked via the netlify cli and blobs didn’t work. This is pretty confusing honestly. Do I have to manually inject the environment variables?
Hi @_t_o_m did you ever figure out what your issue was? I have the same problem where I get that 401 error after explicitly supplying the siteid and token?
Hey fyi I believe I found out what the issue was for anyone else struggling with this who lands on the page - I believe it’s this issue from the blobs github repo.
Blobs don’t work unless they are inside of the request handler.
Hi, I encountered the same problem and realized I do not get the problem if I use a default export instead of a named export. There are many examples of how to write a handler that vary. If i use