Open ahnpnl opened 1 year ago
Hey @ahnpnl Can you update to the new version 1.2.2 and test if you still have the problem? Thank you 😊
I just upgraded the reproduce repo main
branch to be the latest version, still the 404.html
isn't in dist
folder after running build
Which component is affected?
Qwik City (routing)
Describe the bug
Problem
With a newly generated Qwik app with Qwik City, a custom 404 page is not generated in build production folder unless a server adapter is added.
Expected behavior
I'm not sure if this is a bug or it is intended. I've read documentation at https://qwik.builder.io/docs/advanced/routing/#default-404-page and there is no information about
server adapter
needs to be added. This is either a bug with qwik build production or the documentation was missing the information.Reproduction
https://github.com/ahnpnl/my-qwik-app
Steps to reproduce
main
and install deps withpnpm
pnpm qwik build
and checkdist
folder, observe that there is no404.html
file while404.tsx
exists insrc/routes
bug/custom-404-page
pnpm qwik build
and checkdist
folder, observe that404.html
is there.System Info
Additional Information
No response