@wocart/storefront / astro / StorefrontMiddlewareContext
Interface: StorefrontMiddlewareContext
What the middleware uses of Astro's APIContext.
Properties
isPrerendered
isPrerendered:
boolean
locals
locals:
object
App.Locals: the middleware writes store and, on a preview, preview.
request
request:
Request
url
url:
URL
Methods
redirect()
redirect(
location,status):Response
Parameters
location
string
status
301 | 302
Returns
Response