#404 not served when route doesn't match uploaded asset with Cloudfare pages

5 messages · Page 1 of 1 (latest)

lean vine
#

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?

quick hawk
#

create a 404.html in the output directory

lean vine
#

Hey, I just did that and it works, but is it possible to instead just serve cloudfare's 404 page

quick hawk
#

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