Skip to main content

NhostNextClientConstructorParams

Parameters


region optional string

Project region (e.g. eu-central-1) Project region is not required during local development (when subdomain is localhost)


subdomain optional string

Project subdomain (e.g. ieingiwnginwnfnegqwvdqwdwq) Use localhost during local development


adminSecret optional string

When set, the admin secret is sent as a header, x-hasura-admin-secret, for all requests to GraphQL, Storage, and Serverless Functions.


backendUrl optional string

Nhost backend URL Should only be used when self-hosting


devTools optional boolean

Activate devTools e.g. the ability to connect to the xstate inspector


autoSignIn optional boolean

When set to true, will parse the url on startup to check if it contains a refresh token to start the session with


autoRefreshToken optional boolean

When set to true, will automatically refresh token before it expires


refreshIntervalTime optional number

Time interval until token refreshes, in seconds