No description
  • JavaScript 48.4%
  • PHP 22.7%
  • CSS 13.9%
  • HTML 7.5%
  • Vue 7.5%
Find a file
mats-bot 5a87d3c749 Add Shopify GraphQL proxy Function to fix checkout
Shopify removed the 'checkoutCreate' mutation (and CheckoutCreateInput type)
from the Storefront API. The SPA was built against API 2020-04 and called this
mutation directly to start checkout. Result: 'There was an error with the
process' alert when clicking Check-Out.

Fix:
- New Pages Function at /api/shopify-graphql proxies all Storefront GraphQL
  requests to API 2024-04, with one transformation: when it sees a
  'checkoutCreate' mutation it rewrites the request as 'cartCreate' (the modern
  equivalent) and reshapes the response so the SPA still finds
  data.checkoutCreate.checkout.webUrl.
- Bundle apollo httpEndpoint patched from xchematic-store.myshopify.com to
  /api/shopify-graphql so all Storefront calls flow through the proxy.

Confirmed end-to-end: Add to Cart → Check-Out now redirects to a real Shopify
cart URL.
2026-05-01 15:44:48 -06:00
api Initial import: Xchematic site (Vue frontend) + Flextype API content 2026-04-29 13:16:51 -06:00
dist-old Initial import: Xchematic site (Vue frontend) + Flextype API content 2026-04-29 13:16:51 -06:00
site Add Shopify GraphQL proxy Function to fix checkout 2026-05-01 15:44:48 -06:00
.gitignore Commit deployable artifacts: site/dist (rebuilt SPA + Flextype snapshots + uploads) 2026-04-30 15:27:39 -06:00
MIGRATION.md Replace Flextype API dependency with static snapshots + Pages Function 2026-04-30 15:25:56 -06:00