-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add github-pages
preset
#1133
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1133 +/- ##
==========================================
- Coverage 67.92% 67.89% -0.03%
==========================================
Files 65 66 +1
Lines 6406 6426 +20
Branches 713 715 +2
==========================================
+ Hits 4351 4363 +12
- Misses 2041 2049 +8
Partials 14 14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
β Live Preview ready!
|
src/presets/static.ts
Outdated
@@ -8,6 +8,7 @@ export const _static = defineNitroPreset({ | |||
}, | |||
prerender: { | |||
crawlLinks: true, | |||
routes: ["/404.html"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only makes sense for github i guess for default behavior (not sure what other static providers respect 404.html
as fallback)
π Linked issue
resolves #798
nuxt/nuxt#12480
nuxt/nuxt#12570
β Type of change
π Description
This adds a basic GitHub Pages preset. It creates a
.nojekyll
file and by default uses https://github.com/tschaub/gh-pages as deploy command.β TODO
π Checklist