HttpOnlyCookieStorageOpts
●cart · /next·interface
Options bag for . Every field is optional —
the factory applies defaults tuned for a Shopify-style sticky-cart: 180-day
maxAge, sameSite=lax, secure in production, path /.
Properties
PROPTYPEDESCRIPTION
domain?
string
maxAge?
number
name?
string
path?
string
sameSite?
'lax' | 'strict' | 'none'Example
const storage = httpOnlyCookieStorage({ name: 'my-shop-cart', maxAge: 86400 });Related
AuthBridge CartIdStorage CreateTypedCartActionsOpts FormCartActions NextEventBridge TypedCartActions NextEventBridgeHandlers createCartEnsurer
MetadataOpen in GitHub ↗
FormCartActions
Set of FormDatadriven server actions returned by . Each method parses and validates a FormData payload before delegating to the typed action surface, enabling n
httpOnlyCookieStorage
Builds a backed by a single HttpOnly cookie on the Next.js request/response. Serveronly by construction — cookies() is the App Router primitive and is unavailab