Routes

Every URL in the storefront mapped to its source file and purpose.

Pages

RouteFileDescription
/app/page.tsxHome page with hero, featured products, info section
/products/[handle]app/products/[handle]/page.tsxProduct detail page; ?variant= selects a specific variant
/collections/[handle]app/collections/[handle]/page.tsxCollection listing with filters, sort, pagination
/collections/allapp/collections/[handle]/page.tsxVirtual "All Products" listing; synthesized since Shopify's Storefront API has no all collection
/searchapp/search/page.tsxSearch results (same grid as collections)
/cartapp/cart/page.tsxFull cart page with upsells
/pages/[slug]app/pages/[slug]/page.tsxCMS-driven marketing pages
/aboutapp/about/page.tsxAbout page

API routes

RouteFileDescription
POST /api/webhooks/shopifyapp/api/webhooks/shopify/route.tsShopify webhook handler for cache invalidation
POST /api/chatapp/api/chat/route.tsAI shopping assistant endpoint
GET /api/draftapp/api/draft/route.tsDraft mode toggle for content preview

Variant URLs

Product variant selection uses Shopify's standard variant query parameter directly on the product route:

URLPurpose
/products/:handle?variant=:variantIdOpens the product page with the matching variant selected

Chat

Tip: You can open and close chat with I

0 / 1000