Setting up routing fo using Sanity CLI as a static subdirectory

I want to set up a static directory under static/cms which is a SPA for Sanity CMS. Since it’s a spa when you are using it you will end up changing the url as you click around. If you refresh netlify will say no page exists here, because it needs to be serviced by static/cms/index.html and the link is /cms/desk/....

Is there a way to use the redirect rules to make this work? Essentially I need /cms/desk/... to redirect to /cms/index.html without rewriting the url.

hi there, before we dig in, did you see this brand new guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.