Use ngrok for tunneling during app development
Shopify uses Cloudflare Quick Tunnels to open a publicly accessible tunnel to your app by default. Tunneling provides a secure (HTTPS) URL to your local environment for app development with shopify app dev
. You can optionally use ngrok tunnels as an alternative. To do so, install and run ngrok in your development environment.
Set up ngrok
Anchor link to section titled "Set up ngrok"- Set up an ngrok account.
- Install the ngrok CLI.
- Follow the steps in the ngrok documentation to set up your access token.
In a terminal, start ngrok using the following command. You can alternatively choose another port number.
Note the URL ending in
ngrok-free.app
that's returned and leave ngrok running.
Configure and run your app with ngrok
Anchor link to section titled "Configure and run your app with ngrok"Run the following command. If you've chosen another port number, then use that instead.