Configure Content Types

Configure preview for content types


Next, we need to configure preview mode for the content types. This will display an inline preview in an iframe when you visit the content pages.


Configure Preview

To enable content preview inside Drupal, we need to configure a site resolver for the Article content type.

A site resolver tells Drupal how to resolve the preview URL for an entity.

  1. Visit /admin/config/services/next/entity-types
  2. Click Configure entity type
  3. Select Article from the the entity type list
  4. Select Site selector as the Site resolver
  5. Select your site under Next.js sites
  6. Click Save