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

Introducing 'preview_enabled' on the next_entity_type_config entity

Open bojanbogdanovic opened this issue 1 year ago • 4 comments

This pull request is for: (mark with an "x")

  • [ ] examples/*
  • [x] modules/next
  • [ ] packages/next-drupal
  • [ ] starters/basic-starter
  • [ ] starters/graphql-starter
  • [ ] Other

GitHub Issue: #496

Describe your changes

I have decoupled the site resolver from preview mode in the 'next_entity_type_config' and added a new 'preview_enabled' property. This property gives the ability to enable/disable the preview mode on specific entities. The site resolver is now also required, due the fact that it is needed for the preview mode and on demand revalidation.

Screenshot of the UI change: Screenshot 2024-01-18 at 11 28 15

bojanbogdanovic avatar Jan 18 '24 10:01 bojanbogdanovic

@bojanbogdanovic is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jan 18 '24 10:01 vercel[bot]

This is working for us, and very much needed. Thanks @bojanbogdanovic!

Here are the changes as a patch for the Next module in Drupal: next_drupal-660-5c0d143.patch

jeffschuler avatar Feb 07 '24 21:02 jeffschuler

Merge conflicts with a previous PR need to be resolved. Sorry about that!

JohnAlbin avatar Feb 23 '24 06:02 JohnAlbin

Bump! Merge conflict is resolved.

bojanbogdanovic avatar Jun 18 '24 11:06 bojanbogdanovic