next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Make preview a per site configuration

Open fiasco opened this issue 7 months ago • 0 comments

Package

next (Drupal module)

Describe the feature request

When operating multiple next.js sites from one Drupal, I may have different preview approaches depending on the type of site I have. As such I'd like to set the preview plugin on each site. However right now, its a global module-level configuration.

Describe the solution you'd like

Provide configuration per site to define the preview plugin at a site-level.

Describe alternatives you've considered

I guess you can technically get around this constraint with a custom module to alter the current implementation but its not ideal.

Additional context

Instead of an iframe previewer, I wanted to redirect the user to the next.js site. So I also wanted a redirect previewer plugin also.

fiasco avatar Jul 20 '25 20:07 fiasco