Skip to content

Example: Routing (Template Hierarchy) - Next.js Pages router middleware #38

@moonmeister

Description

@moonmeister

Overview

As per RFC #9 we need to supply examples and documentation on how to re-create the WordPress Template Hierarchy using rewrites in a headless application.

We should cover following template types

  • Front Page
  • Home
  • Archive
  • Category
  • Tag
  • Single Page
  • Single Post
  • Search
  • Author
  • Attachment
  • Single Custom Post Type
  • Archive Custom Post Type
  • 404

Other considerations will be how you generate the context and map the routes, whether to doing rewrites at build time or using middleware.

Metadata

Metadata

Assignees

Labels

Projects

Status

🆕 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions