Studio Hard Refresh Causing a 404 Response Hosted on Netlify

4 replies
Last updated: Dec 31, 2021
Howdy, having issues with Studio hard refresh causing a 404 response hosted on Netlify. I’ve tried the suggested solutions via
_redirect
and
netlify.toml
Nothing seems to make a difference. Frontend using NextJS. Thanks in advance for any suggestions.
netlify.toml
[[redirects]]
  from = "/*"
  to = "/"
  status = 200

_redirect in root
 /studio/* /studio 200
Dec 25, 2021, 7:49 PM
Did you install gatsby-plugin-netlify ?
Dec 26, 2021, 9:31 PM
Hi Kevin. Does the URL change when you refresh?
Dec 27, 2021, 6:59 PM
no gatsby-plugin-netlify installed. Using Netlify and NextJS, and from what I understood those plugins aren’t necessary anymore, unless I’m mistaken?
Refresh doesn’t not change the URL, however opening Studio at
/studio
it routes/loads
/studio/desk
as the base URL
Dec 30, 2021, 9:12 PM
I sorted it out, thanks all for the help. Issue was another eng set the base path which I wasn’t aware of to include
studio
I mistaken assumed that was part of Sanity “Studio”
Dec 31, 2021, 5:39 PM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in