-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix relative webhooks TOML transformation #4253
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
Coverage report
Test suite run success1797 tests passing in 818 suites. Report generated by 🧪jest coverage report action from 253d1ce |
/snapit |
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g [email protected]
|
WHY are these changes introduced?
Fixes https://shopify.zendesk.com/agent/tickets/49319741
Fixes Shopify/shopify-app-template-remix#776 (comment)
The link process rewrites the TOML to transform webhook URIs like
https://example.com/webhooks
to/webhooks
when the app URL ishttps://example.com
.But when the app URL ends with a slash, like
https://example.com/
, then we were wrongly updating the webhook URI towebhooks
, causing the deploy validation to fail.WHAT is this pull request doing?
Remove the final slash from the app URL when doing that transformation, so the final result includes the required initial slash.
How to test your changes?
application_url
in the TOML tohttps://whatever.com/
/webhooks
Measuring impact
How do we know this change was effective? Please choose one:
Checklist