Skip to content

getProductHandles

getProductHandles(max?): Promise<string[]>

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

All product handles in the store (cursor-paginated), for static route generation:

export async function getStaticPaths() { return (await getProductHandles()).map((handle) => ({ params: { handle } })); }

number

Promise<string[]>