Skip to content

requireGate

requireGate(pathname, options?): Promise<void>

Defined in: @storesynk/next/dist/require-gate.d.ts:11

Enforce the shop’s page gates for pathname. Resolves (undefined) when the request is allowed; otherwise never returns - it throws Next’s redirect() / notFound() control-flow errors, or a descriptive Error when the route is being statically rendered.

string

RequireGateOptions

Promise<void>