Shopify app running on cloudflare pages
- Cloudflare account
- cloudflared cli
brew install cloudflared
- Node.js & NPM see package.json#engines
brew install node@20
- Actionlint
brew install actionlint
npx wrangler pages project create {project-name}
cp .env .env.local # update values
export $(cat .env.local | xargs)
- copy .env.cloudflare vars to Cloudflare pages > Environment variables
- create Workers > KV store key SHOPFLARE_KV & attach it to pages > Settings > KV namespace bindings
- copy .env.github vars to Github > secrets and variables
npm install
npm run dev
# open -a Safari {cloudflared.url}
npm run build
npm run deploy
- https://github.com/Shopify/shopify-api-js/compare/3120fc7..main
- https://github.com/Shopify/shopify-app-js/compare/9ae50b3..main
Method(s) | URL |
---|---|
GET | /api/auth/callback? |
POST | /api/proxy/graphql/admin |
POST | /api/proxy/graphql/storefront |
ALL | /api/proxy/rest/:path |
POST | /api/graphql |
Copyright (c) 2023 chr33s. See LICENSE.md for further details.