Skip to content

getProductHandles

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

Defined in: @storesynk/next/dist/runtime.d.ts:79

All product handles in the store (cursor-paginated), for static route generation. Deliberately uncached: it runs in generateStaticParams during build, and a paginated cursor loop has no stable cache identity.

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

number

Promise<string[]>