Hydrogen is a React framework and SDK that you can use to build fast and dynamic Shopify custom storefronts.
Requirements:
- Node.js version 16.5.0 or higher
- Yarn
yarn
yarn dev
Remember to update shopify.config.js
with your shop's domain and Storefront API token!
Link this directory to a Vercel project and set the following environment variable in Vercel Dashboard:
ENABLE_FILE_SYSTEM_API
:1
Build for production with the following command:
yarn build
This generates a Vercel Edge Function (middleware) in .output
directory.