MedusaProviderProps
Properties
baseUrlstringRequiredThe URL to your Medusa backend.
queryClientProviderPropsQueryClientProviderPropsRequiredAn object used to set the Tanstack Query client. The object requires a
client property,
which should be an instance of QueryClient.apiKeystringAPI key used for authenticating admin requests. Follow this guide to learn how to create an API key for an admin user.
customHeadersRecord<string, any>An object of custom headers to pass with every request. Each key of the object is the name of the header, and its value is the header's value.
Default: `{}`
maxRetriesnumberNumber of times to retry a request if it fails.
Default: 3
publishableApiKeystringPublishable API key used for storefront requests. You can create a publishable API key either using the
admin APIs or the
Medusa admin.
Was this section helpful?