Type Alias NextDrupalOptions

NextDrupalOptions: NextDrupalBaseOptions & {
    cache?: DataCache;
    deserializer?: JsonDeserializer;
    throwJsonApiErrors?: boolean;
    useDefaultEndpoints?: boolean;
}

Type declaration

  • Optionalcache?: DataCache

    Override the default cache.

    • Default value: node-cache
    • Required: No

    Documentation

  • Optionaldeserializer?: 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

    Documentation

  • OptionalthrowJsonApiErrors?: 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

    Documentation

  • OptionaluseDefaultEndpoints?: 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

    Documentation