-
Notifications
You must be signed in to change notification settings - Fork 35
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
Getting 500 trying to run Sanity + Nuxt 3 on Cloudflare Workers #660
Comments
Hey @VicFleur, out of curiousity, have you stumbled across a workaround for this? |
@warflash no, we ended up self-hosting the app instead. Looks like the "solution" would be avoiding the |
Appreciate the response! |
Interesting. I would certainly be up for hotfixing here but probably deserves to be in https://github.com/unjs/ofetch which we are using under the hood. |
Actually, I think we can just omit on the server. (Still should be raised upstream, but I think we have a local solution.) |
Version
module: 1.6.0
nuxt: 3.1.1
Nuxt configuration
Super simple setup
using
minimal
or not doesn't have any effect, usinguseSanityQuery
orsanity.fetch
does not matter eitherReproduction
Just create a barebones Nuxt 3 app, install Sanity and run a simple groq query through
useSanityQuery
What is expected?
getting Sanity's content on the server side
What is actually happening?
it works only on the client side, while every time a query is fired from SSR it returns a 500 error with the following message:
The 'credentials' field on 'RequestInitializerDict' is not implemented.
I am aware that this might be mainly due to a feature not supported by Cloudflare as noted in this thread. However, other libraries with a similar problem seem to have some sorts of way to bypass the thing if I'm not misinterpreting these answers.
So I was wondering if Sanity's module has a way around this missing bit or not.
The text was updated successfully, but these errors were encountered: