Skip to content

Example: Routing (Template Hierarchy) - Next.js App router middleware #26

Open
@colinmurphy

Description

@colinmurphy

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

No one assigned

    Labels

    topic:routingRelated to routingtype:docsDocumentation only changes

    Type

    No type

    Projects

    Status

    🆕 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions