LogoA Template
icon of ISR Blog

ISR Blog

A Next.js 14 blog example using WordPress as a data source, featuring ISR, dynamic 404 handling, and automatic type generation.

Introduction

This is a Next.js 14 project (with App Router) that uses WordPress as a data source.

Key features include:

  • robots.ts: Serves the robots.txt of the API route.
  • sitemap.ts: Generates a sitemap to serve on the /sitemap.xml route.
  • middleware.ts: Contains a middleware function that checks the users path for stored redirects.
  • [[...slug]]: Catch-all route used to render all pages.
  • not-found.tsx: Dynamic 404 handling.
  • codegen.ts: Automatic type generation for your WordPress installation
  • Draft Mode: Seamless Preview / Draft Preview support, using authentication through WPGraphQL JWT Authentication and Next.js Draft Mode
  • On Demand Cache Revalidation: WordPress theme that implements cache revalidation, WordPress link rewrites and other utils for integrating with Next.js
A template
Copy badages awards

Newsletter For A Template

Join the Community For A Template

Subscribe to A Template newsletter for the latest news and updates