Rewrites with static site

Hello, I am using a rewrite for a static site but it appears to be redirecting any page that is not the homepage (ie click about and then refresh on about page sends you to homepage). I have tried a created a minimal test case https://sveltekit-test1.onrender.com/ with just the sveltekit demo app and the rewrite below (which I thought would work for a SPA). Just looking for any guidance as to why this may be happening.

Thank you!

Hey @joey,

The rewrite rule looks correct to me. Does it work locally? Can you share the repo used for the example site?

hey @jake

Thank you for taking a look and confirmed that it does work as intended on local. And sure, no problem, here’s the example repo: