Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Decoupled Preview

No security coverage Under active development 151 sites

Part of the Decoupled ecosystem · 20 projects

This module allows you to preview content from your Drupal site on a separate, decoupled front-end application. It supports previewing published content, content currently being edited, and content revisions, with the ability to configure multiple preview sites for different front-end setups.

Decoupled Preview

Preview Drupal content on your decoupled front end site.

For a full description of the module, visit the
project page.

Submit bug reports and feature suggestions, or track changes in the
issue queue.

Features

  • Preview published content.
  • Preview while editing a node.
  • Preview revisions.
  • Configure multiple preview sites.
  • Specify the content types that each preview site applies to.
  • Specify an OAuth consumer related to a preview site.

Requirements

This module requires the following modules:

Installation

Require using composer:

composer require drupal/decoupled_preview

Install as you would normally install a contributed Drupal module. For further
information, see
Installing Drupal Modules.

Configuration

This module requires a patch to the Decoupled Router module. If you install this module with composer, allow patches to be applied from dependencies and require cweagans/composer-patches in the root of the project composer.json file. The patch will be applied automatically.

Navigate to Structure -> Preview Sites (/admin/structure/dp-preview-site), add
one or more preview sites, and configure the following:

  • Label: The name of the site.
  • Preview URL: The URL of the decoupled site you are providing preview data to.
  • Preview Secret: A token that will be passed to your decoupled site used to
    limit access to the preview.
  • Preview Type: The type of preview site - currently only Next.js is supported.
  • Content Types: The content types that this preview site applies to.

Preview Types

While we hope to expand in the future, the initial release of this module only
supports Next.js. It was developed in support of Pantheon's Next Drupal Starter, but can be applied to other
Next.js sites using a similar approach.

Ask your assistant about Decoupled Preview

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Jan 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta5 Pre-release 8–10 Dec 4, 2023
1.0.0-beta4 Pre-release 8–10 Nov 16, 2023
1.0.0-beta3 Pre-release 8–10 Oct 16, 2023
1.0.0-beta2 Pre-release 8–10 Jul 10, 2023
1.0.0-beta1 Pre-release 8–9 Jul 3, 2023
1.0.0-alpha6 Pre-release 8–10 Jan 18, 2023
1.0.0-alpha5 Pre-release 8–9 Jan 17, 2023