404 not served when route doesn't match uploaded asset with Cloudfare pages
I deployed a page but if I go to example.com/sdfsdafsd instead of 404 I get the contexts of my index.html. How can I disable this?
4 Replies
create a 404.html in the output directory
Hey, I just did that and it works, but is it possible to instead just serve cloudfare's 404 page
pages doesnt have a default 404 page
if you dont have a 404.html it assumes that youre using a single-page-application and so loads index.html with 200 on 404s
its.. strange, but thats how they designed it
OK, thanks!