Skip to content

getAccountUrl

getAccountUrl(): Promise<string | null>

Defined in: @storesynk/astro/dist/runtime.d.ts:62

The resolved account destination for href stamping inside product slots: 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 for the process lifetime; underivable/failed discovery ⇒ null (the client element warns and the link resolves only if customer-account-url is supplied).

Promise<string | null>