We are excited to announce the beta release of support for Next.js On-Demand Incremental Static Regeneration for Pages Router on Atlas! š
This feature allows you to manually trigger the revalidation of static pages based on specific events, ensuring your content is always up-to-date without the need for a full site rebuild.
Getting started
- Install the @wpengine/atlas-next package in your project
- Set up an API route in your Next.js or Faust.js project to handle revalidation requests.
- Secure your API route with a secret token stored in your .env.local file.
- Use webhook plugins or WordPress hooks to trigger the API route when content is updated.
Visit our documentation for a detailed onboarding guide.
Notes
- This feature is currently in beta. To use it, ensure you are running Next.js version 13.5.1or higher.
- Currently, our support of On-Demand ISR is limited to Pages Router only and does not include support for rewrites, Next.js internationalization, or the App Router.
- This capability is also fully compatible with Faust.js, enabling seamless integration for headless WordPress sites.
For more information about current limitations visit our documentation.
Feedback
We're eager to hear your feedback! Please use our WP Engine feedback form to contact us.
Stay tuned as we continue to enhance our platform with more features to keep the content of your headless WordPress site fresh and up-to-date!