Configure Path Aliases

Configure path aliases for content types


The next-drupal plugin uses paths to resolve resources for getStaticProps. To make this work, we need to configure path aliases for our content types.

Let's add a pattern for the Article content type.

  1. Visit /admin/config/search/path/patterns/add.
  2. Fill in the following values:
  • Pattern type: Content
  • Path pattern: blog/[node:title]
  • Content type: Article
  • Label: Article
  1. Click Save

Done. You have completed the Drupal configuration.