Developer preview
This is a developer preview of GraphCommerce. The documentation will be updated as GraphCommerce introduces new features and refines existing functionality.
Congratulations, you are ready to deploy your GraphCommerce storefront to production. The fastest way to deploy your GraphCommerce app is with Vercel ↗.
Vercel allows for automatic deployments on every branch push and merges onto the Production Branch of your GitHub project:
Set the Environment Variables from your .env file:
GRAPHCMS_URL=""
MAGENTO_ENDPOINT=""
IMAGE_DOMAINS=""
NEXT_PUBLIC_LOCALE_STORES=""
NEXT_PUBLIC_DISPLAY_INCL_TAX=""
Vercel will auto assign a domain to your project. In this example, the Github
project repository name is graphcommerce-example
, so the domain will be
https://graphcommerce-example.vercel.app
. Add this domain as the GraphQL and
Public site URL Environment Variables:
NEXT_PUBLIC_GRAPHQL_ENDPOINT="https://graphcommerce-example.vercel.app/api/graphql"
NEXT_PUBLIC_SITE_URL="https://graphcommerce-example.vercel.app/"
NEXT_PUBLIC_GRAPHQL_ENDPOINT
and NEXT_PUBLIC_SITE_URL
variables
afterwards.