Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override the default 404 screen in Qwik?

I'm testing out the Qwik Javascript framework from Builder IO and I cant find any documentation which points me in the direction of customizing the 404 page.

I am using the qwik-city plugin from Qwik.

like image 391
Rafael Zasas Avatar asked Dec 04 '25 14:12

Rafael Zasas


2 Answers

Check it. It's about how to render a 404 page. https://qwik.builder.io/qwikcity/routing/error-responses/

like image 123
Lukas249 Avatar answered Dec 07 '25 03:12

Lukas249


I was able to do this by creating a "catch all route" at the root level. Simply create a normal page in src/routes/[...whatever]/index.tsx.

like image 22
szilagyi.sandor Avatar answered Dec 07 '25 02:12

szilagyi.sandor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!