First install http-server and ngrok globally
npm i -g http-server ngrokRun a local web server
http-server -p 8080Create a publicly facing URI to connect to you local web server
ngrok http 8080Browse to
https://<your sub domain>.ngrok.io/atlassian-connect.jsonto make sure the app is running.
Open up the app in your editor and open your atlassian-connect.json file. Find the baseUrl property and change it to
https://<your sub domain>.ngrok.ioNavigate to the "Manage add-ons" section in Confluence.
Click the "Upload add-on" link and paste in the url to you atlassian-connect.json file
https://<your sub domain>.ngrok.io/atlassian-connect.jsonThen hit "upload".