-
Notifications
You must be signed in to change notification settings - Fork 461
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(vercel): incremental static generation + swr #545
Conversation
Codecov Report
@@ Coverage Diff @@
## main #545 +/- ##
==========================================
+ Coverage 66.43% 66.91% +0.48%
==========================================
Files 57 57
Lines 4210 4232 +22
Branches 450 459 +9
==========================================
+ Hits 2797 2832 +35
+ Misses 1409 1397 -12
+ Partials 4 3 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
0e428e7
to
05bc228
Compare
That is planned, but not part of this PR. (It's a straightforward enhancement, so it should be fairly quick to implement, and I already have a local proof-of-concept.) |
That's awesome, thanks a lot Daniel for your reactivity π |
05bc228
to
51afeca
Compare
We should be good to merge now - @TooTallNate fixed the upstream bug and also spotted an issue with a regexp. Sample deployment running with Vercel ISG: https://verc-danielroe.vercel.app. cc: @pi0 |
Hi Daniel, sorry to bother you again on this question, but is there a way to refresh a static page manually (on-demand ISR) for a Nuxt project deployed on Vercel ? I couldn't find anything in the current Nuxt documentation π Thanks again ! |
This isn't yet implemented but will be π |
OK, thanks ! Is there some public road map or an issue I could follow to be alerted when this is implemented ? |
π Linked issue
β Type of change
π Description
Like #540, this PR adapts the vercel preset to automatically support ISG strategies based on the swr/static route rule.
For example, the following config would create prerender functions for the blog & articles routes. The blog routes would be generated only once and then persisted; the articles routes would be regenerated every 360 seconds.
Here's a deployment using this preset: https://verc-danielroe.vercel.app/
π Checklist