Update app proxy url in dev, when specified in config as code#2594
Update app proxy url in dev, when specified in config as code#2594
Conversation
|
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
ed29cfe to
a01abb5
Compare
a01abb5 to
6652304
Compare
Coverage report
Show files with reduced coverage 🔻
Test suite run success1394 tests passing in 660 suites. Report generated by 🧪jest coverage report action from 77708e3 |
|
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
|
Hi @Arkham, I think that one step is missing here (or I've misunderstood something): the app proxy url doesn't change on the The |
|
hey @BaggioGiacomo, this PR does that exactly that, it will be released in the next |
|
oh, I thought this feature was already released on the |
|
Why doesn't the |
WHY are these changes introduced?
We allow developers to setup an app proxy, which is composed of:
https://my-cool-shopify-app.com)apps)my-cool-proxy)If they set it up, every time a user visits
https://fancy-apparel.myshopify.com/apps/my-cool-proxy/another-pathwe will forward them tohttps://my-cool-shopify-app.com/another-path.The issue is that while running
app dev, if you accept to automatically update URLs, we will spawn a cloudflare tunnel and use it to automatically update:But we won't automatically update your app proxy url.
With the introduction of config as code, the workaround is to update the
shopify.app.tomlyourself and runapp config push, but it's still not great.WHAT is this pull request doing?
If all the following applies:
app_proxysection is presentTHEN we will automatically use the tunnel URL to populate your app proxy URL.
Fixes #990
How to test your changes?
bin/create-test-app.js -e ui(when asked if you want to automatically update URLs accept)npm run shopify app config linknpm run devagain, you should see the new url populating:Measuring impact
How do we know this change was effective? Please choose one:
Checklist
devordeployhave been reflected in the internal flowchart.