SimeonGriggs / sanity-react-router-template

Sanity Studio v3 embedded into a Remix Vite application configured for Vercel hosting with visual editing
https://sanity-remix-template.sanity.build
164 stars 35 forks source link

A version for Cloudflare Pages #23

Closed IshanKBG closed 1 year ago

IshanKBG commented 2 years ago

Can you make a version for cloudflare pages as well using remix and sanity v3. I tried porting this to cloudflare and used their method for streaming as well but I am getting tons of error so could you please make a version for cloudflare pages as well? It would be really helpful to run Sanity Studio from the edge

SimeonGriggs commented 2 years ago

Try installing the esm tagged version of Sanity Client. It's a prerelease version which supports more environments.

npm install @sanity/client@esm
IshanKBG commented 2 years ago

Ok I will try and share the results here

IshanKBG commented 1 year ago

@SimeonGriggs it looks another issue is that studio uses styled components and that is not supported in workers runtime thus causing errors