chapter-three / next-drupal

Next.js for Drupal has everything you need to build a next-generation front-end for your Drupal site: SSG, SSR, and ISR, Multi-site, Authentication, Webforms, Search API, I18n and Preview mode (works with JSON:API and GraphQL).
https://next-drupal.org
MIT License
639 stars 178 forks source link

Replace approach that decorates core 'main_content_renderer.html' service #819

Open Ateee89 opened 1 week ago

Ateee89 commented 1 week ago

Package

next (Drupal module)

Describe the feature request

Approach should be changed to not decorate core's main_content_renderer.html service, but instead provide a normal preview route. There can be use cases where users want to see the entity view instead of the preview.

mglaman commented 1 week ago

There is also the overhead where Next.js is running for all pages because it decorates the renderer.