What problem does it solve?
Audit and fix VTEX integration issues in Deco apps-start, focusing on cookie propagation, auth cookies, order form structure, salesChannel handling, HttpOnly cookie requirements, Intelligent Search cookies, and hooks parity with deco-cx/apps.
Core Features & Use Cases
- Cookie propagation: ensure server responses carry Set-Cookie headers to the browser via vtexFetchWithCookies where state changes occur.
- Auth and session hygiene: verify VtexId auth cookies are built and sent correctly for GraphQL calls and sessions.
- Order form reliability: enforce expectedOrderFormSections on checkout calls and route hygiene.
- Sales channel scoping: ensure sc parameter is included in catalog and order form endpoints for correct pricing and availability.
- Hooks parity: validate presence and behavior of useCart, useUser, useWishlist equivalents.
- TypeScript validation: align type definitions and enrichments with deco-cx/apps parity.
Quick Start
Start by running the VTEX audit for deco-apps-vtex-review to identify cookie, auth, and order form issues, then implement fixes to align with best practices.