Open
Conversation
✅ Deploy Preview for sleepy-chandrasekhar-717c3d ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Incremental Static Regeneration (ISR) support for large WooCommerce catalogs in WooNuxt by introducing a configurable TTL and enabling ISR on key catalog routes, with accompanying documentation and example env configuration.
Changes:
- Add
CATALOG_ISR_TTLenv var (default 3600s) and wire it into Nuxt/Nitro configuration. - Enable Nitro
routeRulesISR for/product/**,/product-category/**, and/products/**. - Document recommended hybrid/ISR build approach for large catalogs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
woonuxt_base/nuxt.config.ts |
Parses CATALOG_ISR_TTL and applies it to Nitro ISR routeRules for catalog routes. |
README.md |
Adds a “Large Catalog ISR Setup” section describing build mode and ISR behavior. |
.env.example |
Documents the new CATALOG_ISR_TTL configuration with a default value. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@scottyzen I've opened a new pull request, #356, to work on those changes. Once the pull request is ready, I'll request review from you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support and documentation for using Incremental Static Regeneration (ISR) for large product catalogs (10,000+ products) in WooNuxt, making it easier to handle dynamic content efficiently. The changes include new environment variable configuration, updates to documentation, and adjustments to the Nuxt configuration to enable and control ISR for key catalog routes.
ISR support for large catalogs:
CATALOG_ISR_TTL(default: 3600 seconds) to control the cache lifetime for catalog routes in.env.example.woonuxt_base/nuxt.config.tsto read and validateCATALOG_ISR_TTL, defaulting to 3600 seconds if not set or invalid.routeRulesinwoonuxt_base/nuxt.config.tsto enable ISR for/product/**,/product-category/**, and/products/**routes, using the TTL fromCATALOG_ISR_TTL.Documentation updates:
README.mdexplaining how to set up ISR for large catalogs, including build instructions, route behavior, and platform-specific notes for Vercel and Netlify.