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
nitro build with "github-pages" preset doesn't prerender index.html file like with the "static" preset which doesn't seem to be intended behaviour.
this is due to github pages preset adding 404.html route in prerender object
Environment
nitro 2.9.5
Reproduction
In
nitro.config.ts
https://codesandbox.io/p/github/unjs/nitro/csb-rqd4sc/draft/old-sky?file=%2Fnitro.config.ts%3A6%2C1
Describe the bug
nitro build
with "github-pages" preset doesn't prerenderindex.html
file like with the "static" preset which doesn't seem to be intended behaviour.this is due to github pages preset adding
404.html
route in prerender objectnitro/src/presets/github-pages.ts
Lines 10 to 15 in eb377ab
this check is no longer true
nitro/src/prerender.ts
Lines 40 to 43 in 2bce7ad
so
index.html
doesn't get prerenderedAdditional context
manually adding "/" to routes array should fix this but maybe there's a better solution
Logs
No response
The text was updated successfully, but these errors were encountered: