next-drupal / NextDrupalOptions
Type Alias: NextDrupalOptions
NextDrupalOptions:
NextDrupalBaseOptions
&object
Defined in: packages/next-drupal/src/types/next-drupal.ts:4
Type declaration
cache?
optional
cache:DataCache
Override the default cache.
- Default value:
node-cache
- Required: No
deserializer?
optional
deserializer:JsonDeserializer
Override the default data deserializer. You can use this to add your own JSON:API data deserializer.
- Default value:
(new jsona()).deserialize
- Required: No
throwJsonApiErrors?
optional
throwJsonApiErrors:boolean
If set to true, JSON:API errors are thrown in non-production environments. The errors are shown in the Next.js overlay.
Default value: true
Required: No
useDefaultEndpoints?
optional
useDefaultEndpoints:boolean
By default, the resource endpoint will be based on the resource name. If you turn this off, a JSON:API request will retrieve the resource's endpoint url.
- Default value:
true
- Required: No