Dewidos
CDCloudflare Developers
•Created by Dewidos on 11/1/2024 in #pages-help
Configure /studio/index.html to handle requests to /studio/*
- https://mysiek-pl.pages.dev (users should access from https://mysiek.pl)
- Deployment ID: a1e49976-0fb4-4d4b-969d-0acd72e37e57
- Account ID: 5f2dea697c8022bf9f348c2dba9433b2
I'm using Cloudflare pages to host a static website built with Astro. It's integrated with Sanity.io CMS system - this integration exposes a React SPA on URLs beginning with /studio/. This SPA works fine, but if you refresh the page, client is redirected to 404 error page.
I've already tried the following
_redirects
file, unfortunately to no avail:
I'd like to point out that it was correctly placed in my public folder, I noticed that it was detected by Cloudflare in deployment details.
I had also set up a Transform Rule earlier, but it has only caused Too many redirects error. I had used the following settings:
Please help me set this up, because the current situation isn't very comfortable for editors who need to access the Sanity Studio.9 replies