Skip to content

getAccountUrl

const getAccountUrl: () => Promise<string | null>

Defined in: @storesynk/react/dist/runtime.d.ts:42

The resolved account destination for href stamping inside product slots (mirrors @storesynk/next’s getAccountUrl): the explicit customerAccountUrl config (required for customerAccountPages: 'custom', optional override for ‘shopify’), else - ‘shopify’ mode - the hosted portal URL derived from the shop’s OAuth discovery documents (shopify.com//account; the client derives the SAME URL from the same documents at hydration, so stamped hrefs never change). Static per shop, so module-cached; underivable/failed discovery ⇒ null.

Promise<string | null>