A tool for developing extensions locally.
In terminal 1:
dev cd cli
bin/create-test-app.js -e ui
- Copy the Shopify extension dev console URL e.g:
https://d1b8-2a09-bac1-14c0-188-00-b-224.ngrok.io/extensions/dev-console
In terminal 2:
dev cd cli
cd packages/ui-extensions-dev-console
VITE_CONNECTION_URL=[SHOPIFY_EXTENSION_DEV_CONSOLE_URL] pnpm dev
Go to the localhost URL that is output by the command.
When you run pnpm dev
a version of the dev console will be run, which is served from a static build. If you go to a preview URL Shopify web will load the dev console from this URL, rather than the vite dev server which is on localhost:3000.
If you want to see your changes on Shopify web:
dev cd cli
cd packages/ui-extensions-dev-console
pnpm build