Releases: opennextjs/opennextjs-aws
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
ISR done right — aka The Conico Release
We made some major improvements to the way ISR works. Staring from v2.0.0, the ISR cache is stored and shared across all server function instances via an S3 bucket. When the cache becomes stale, it's revalidated asynchronously while stale content continues to be served, leveraging AWS CloudFront's stale-while-revalidate (SWR) strategy.
In addition, we now support On-Demand Revalidation.
Read more about our revamped ISR approach.
Upgrading to v2
The open-next build
now generates a revalidation-function
bundle and a cache
asset bundle in the .open-next
directory. Here's what you need to do to upgrade:
- Create a revalidation Lambda function and connect it to an SQS FIFO queue
- Upload the
cache
files to an S3 bucket - Update new environment variables and permissions for the server function
- Optionally, reuse the same bucket for both assets and cache
For an updated overview of the infrastructure with ISR revalidation, check out this architectural diagram.
Changes
- 855cf92: Improved ISR support
🙏 🙏 A big thanks to @conico974, @dalhaan, @dkershner6, and @khuezy for their hard work on this release. And of course, a shout-out to everyone rallying for this feature here and on Discord.