Skip to content

Commit

Permalink
docs: custom 404 during development update (#3859)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Apr 20, 2023
1 parent b95fe70 commit 6039e46
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -35,6 +35,8 @@ In the example above, the `404.tsx` page will also use the `layout.tsx` layout,

Additionally, using Qwik City's directory-based routing allows for custom 404 pages to be created at different paths. For example, if `src/routes/account/404.tsx` was also added to the structure, then the custom account 404 page would only be applied to the `/account/*` routes, while all other 404s would use the root `404.tsx` page.

> Note: During development and in preview mode, the custom 404 pages will be not render, but instead the default Qwik City 404 page will show. However, when building the app for production, the custom 404 page will be statically generated as a static `404.html` file.
```bash
src/
└── routes/
Expand Down

0 comments on commit 6039e46

Please sign in to comment.