-
Notifications
You must be signed in to change notification settings - Fork 87
Support for on-Demand Revalidation #1288
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
Comments
Hi @kamerat |
@ascorbic is |
@ascorbic Still to this date with [email protected] |
@yescine @EddyVinck in progress! |
Hi, any updates on progress for this? |
@iurage we are keen to support this as soon as possible and are working toward it as per our roadmap |
Would be good to hear an update on this. It's been a much talked about feature in my team and we're really looking forward to selling this performance benefit to our clients! |
Really would like to see this for feature parity with other hosting providers. Any updates on timeline? This is bordering on dealbreaker for us as we have a massive blog that we can't realistically rebuild every time someone finds a typo. |
I'm afraid I can't be any more specific than "this is being worked on". We're waiting on some new platform features that we need for this to work, but I think you'll be pleased with the results. |
"this is being worked on"... i mean, seems like a trivial task given that you already support {revalidate: 60}. If you're concerned about resource use, then just paywall it. It wouldn't be so bad if we also didn't have to wait 60 seconds for revalidation... maybe bring that down to 10 seconds? |
You know that they there say are the two hard problems in computer science? |
@ascorbic Any updates? |
It's actively been looked at at the moment, but I can't provide a timeline yet @theooog. |
? |
Netlify doesn't support on-demand revalidation yet. See: opennextjs/opennextjs-netlify#1288. The documentation states that cache control for SSR pages isn't supported. By using `force-dynamic` it is equivalent to the `getServerSideProps` function used in the previous version.
Hey, any update on that? |
@Raphael2001 not too long now π |
Hey guys, I'm sure you're sick of people asking, but my team is really excited about this feature. Are there any updates to this? Or maybe a timeframe? Hopefully I'm not adding too much pressure π |
Probably easier to switch to Vercel at this point. |
Guaranteed that right after we switch to Vercel, Netlify will fix this. But growing extremely impatient at the lack of updates on this. Terrible having to manage a NextJS implementation without on demand revalidation. |
@justynspooner i'm afraid we don't currently maintain a public roadmap, but please be assured it's a priority and we're working hard to get this shipped |
+1 - It would be great to get ongoing updates on this feature, it has major impacts to us in project usages / api limits and bandwidths |
What are the current pending tasks that need to be completed for this to go live? Because this is an open-source plugin, we'd like to contribute to it via a public checklist. |
Wondering if there are any updates for this? |
It has been more than a year, can we at least get an update and or ETA? |
@dev-fredericfox, although it's undocumented, this feature is enabled for Next.js sites on Netlify based on my experience. Does it work for you? |
@charkour Dosen't seem to work for me. Did you get it to work on 13 with the app router? |
@dev-fredericfox, what is your |
Revalidate on Next.js 13.3 with the Pages Router works on Netlify. You could email Netlify Support asking if there is anything that needs to be "enabled" on your account, but I don't think that's the case. |
To test if revalidate is working, you should server-render a timestamp and then mount that in your DOM: "build at ". That way you can see when the server revalidated the page. Or, you could open the webpage in a new browser (which hasn't cached the webpage) and it will immediately show the updated page. |
@charkour thanks a lot for your feedback! I am using the App router, not pages. I am revalidating by tag and/or URL. My netlify demo-build is outputting a server generated timestamp, that's how I can tell it is not regenerating the page (the timestamp === the build timestamp, even after post-ing to the revalidate api route). This all works when working locally with I have not set any ttl, maybe that is the issue, what is the default? I have waited more than an hour before trying the revalidation again, but still nothing. |
@dev-fredericfox, I don't believe there is any default set according to the Netlify Next.js Docs. You could try setting it to 60 seconds. I'm not certain Netlify supports the App router On-demand ISR yet. |
Hey folks, We've released an early access version of our new runtime which you can opt-in to via the Netlify app UI or you can manually install it. This should have full support for app router and the various flavours of revalidation for pages and app router. We'll be rolling this out to everyone in the next few weeks but you can try it now. You'll need Next 13.5+ and Node 18 but it should fix a lot of these issues. More info here in the docs: Netlify Next.js Let us know if you run into any issues. Thanks! |
Page router ISR and app router revalidation should now be available for everyone in our new Docs and more info here: Netlify Next.js Closing this issue but feel free to raise a new one if you spot any issues. |
I'm having issues using the on-demand revalidation when hosted on netlify.
When I test it locally by doing next build and next start it works. However, when I test it on a build-deploy or live, it does not seem to update the page.
I have validated that the API endpoint in netlify gets run, has the correct data and unstable_revalidate did not break. (in ___netlify-handler function log)
Does on-demand revalidation not work on netlify yet, or am I missing some config?
EDIT:
Also discussed in #1228
Originally posted by iankduffy February 18, 2022
Hello, NextJS 12.1 has added On-demand Incremental Static Regeneration currently in Beta / Unstable, just wondering if in the future if we are looking to add this to netlify plugin?
The text was updated successfully, but these errors were encountered: