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.
Parameters
Section titled “Parameters”pathname
Section titled “pathname”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<void>