I learned that creating Script tags means that you need a static url, or update the new ngrok host url on all script tags every single render. The Shopify CLI does not support a custom domain for ngrok (as far as I know) and so I looked into a Cloudflared tunnel.
I got the Cloudflared tunnel setup and working with a domain I own and pointed it to Cloudflared. Now I have a Cloudflared tunnel setup and running with the command:
cloudflared tunnel run --url http://localhost:7000
In which I have already setup the tunnelID and configuration. I can run a test, cloudflared tunnel info , and it verifies my tunnel is running.
I now go into my app to run the code specified in the readme that comes with the CLI when you create the app.
And run/test the following codes:
npm run dev --tunnel-url http://localhost:7000
npm run dev --tunnel-url https://localhost:7000
npm run dev --tunnel-url http://www.myowneddomain.com:7000
npm run dev --tunnel-url http://www.myowneddomain.cloudflared.com:7000
All giving me the same error:

I have also given it a try to put in different urls into the URL setup for my app in the partner Dashboard. I’m not sure if this has anything to do with the error but I figured it was worth a try.
This screenshot can be found by clicking on your app and tabbing down to “App Setup” on the left menu.
Has anyone successfully setup Cloudflared? Has anyone successfully setup a static url for their app regardless? Should I just go ahead and get a Heroku account and run my app? I am struggling to run locally without the CLI because there are no react-scripts / npm functions to run the app without the CLI. Shopify has a configuration unknown to me where react-scripts points to the public folder when it needs to point to the pages folder. Has anyone had issues with these things? Please help! Thank you.


