next-drupal / NextDrupalBaseOptions
Type Alias: NextDrupalBaseOptions
NextDrupalBaseOptions:
object
Defined in: packages/next-drupal/src/types/next-drupal-base.ts:3
Type declaration
accessToken?
optionalaccessToken:AccessToken
A long-lived access token you can set for the client.
- Default value:
null - Required: No
apiPrefix?
optionalapiPrefix:string
Set the JSON:API prefix.
- Default value:
/jsonapi - Required: No
auth?
optionalauth:NextDrupalAuth
Override the default auth. You can use this to implement your own authentication mechanism.
debug?
optionaldebug:boolean
Set debug to true to enable debug messages.
- Default value:
false - Required: No
fetcher?
optionalfetcher:Fetcher
Override the default fetcher. Use this to add your own fetcher ex. axios.
- Default value:
fetch - Required: No
frontPage?
optionalfrontPage:string
Set the default frontPage.
- Default value:
/home - Required: No
headers?
optionalheaders:HeadersInit
Set custom headers for the fetcher.
- Default value:
{ "Content-Type": "application/vnd.api+json", Accept: "application/vnd.api+json" } - Required: No
logger?
optionallogger:Logger
Override the default logger. You can use this to send logs to a third-party service.
- Default value:
console - Required: No
withAuth?
optionalwithAuth:boolean
Set whether the client should use authenticated requests by default.
- Default value:
true - Required: *No