This is a Next.js 14 project (with App Router) that uses WordPress as a data source.
Key features include:
robots.ts: Serves therobots.txtof the API route.sitemap.ts: Generates a sitemap to serve on the/sitemap.xmlroute.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 installationDraft Mode: Seamless Preview / Draft Preview support, using authentication through WPGraphQL JWT Authentication and Next.js Draft ModeOn Demand Cache Revalidation: WordPress theme that implements cache revalidation, WordPress link rewrites and other utils for integrating with Next.js





