You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the assets generator doesn't add the output to the .vercel/output/static directory. A workaround is to call the generator via the CLI and then commit the generated files (in public).
The experimental directoryAndTrailingSlashHandler doesn't seem to work on the home page when configured for no trailing slashes.
Conclusion
I'm not sure how to continue debugging the issue here.
Since we use server endpoints, we need output: "hybrid".
I will appreciate any help and feedback.
Thank you for your time and for maintaining this project 🎈
The text was updated successfully, but these errors were encountered:
In the reproduction repository and live website, the issue happens for static pages too.
The / home page links to /second-page which triggers a /404 even though it is by default pre-rendered.
The sw installation is failing (check console errors), it seems we cannot use 404 when using hybrid mode since astro not exposing it as url (open https://pwa-repro.vercel.app/404 in private browsing: vercel response is 404). You will need to change the navigateFallback to root page.
(I cannot run preview script on my local, some vercel stuff required)
Overview
Pages other than the home page (
/
), do not get rendered correctly.Instead, the navigation fallback, which is
/404
in this case is shown.Reproduction
Relevant links:
Steps to recreate:
vercel
adapter@vite-pwa/astro
and@vite-pwa/assets-generator
pluginsKey Observations
output: "static"
and the issue was not observed.hybrid
one, the issue is observed firstRelated Issues
Other Minor Issues
.vercel/output/static
directory. A workaround is to call the generator via the CLI and then commit the generated files (inpublic
).directoryAndTrailingSlashHandler
doesn't seem to work on the home page when configured for no trailing slashes.Conclusion
I'm not sure how to continue debugging the issue here.
Since we use server endpoints, we need
output: "hybrid"
.I will appreciate any help and feedback.
Thank you for your time and for maintaining this project 🎈
The text was updated successfully, but these errors were encountered: