Preview Mode
Enable preview mode for content types.
The Next.js module, paired with the `next-drupal`
plugin, makes it easy to create Next.js preview routes.
To handle preview routes, we need to configure authentication.
The `DrupalClient`
works with several authentication methods. We are going to look into two methods:
- Basic tokens using the basic_auth module.
- Bearer tokens using the simple_oauth module.
Only one of the authentication methods is required for Preview Mode.