Skip to content
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

feat: simplify deeplink updates, use cloudflare worker #58

Merged
merged 20 commits into from
Oct 28, 2024

Conversation

brainbicycle
Copy link
Contributor

@brainbicycle brainbicycle commented Oct 24, 2024

Resolves: https://artsyproduct.atlassian.net/browse/PHIRE-1143

Implements RFC here: https://www.notion.so/artsy/Simplify-universal-link-config-updates-fffcab0764a0804bbf32d730ee4ed134

Updates this repo to stop distributing a library to be consumed by clients.

Instead we will use the same cloudflare worker to distribute app-site-association and assetlinks for deeplinks on every url we need. Deployment will be similar to other repos, deploy to staging* (test worker) on merge to main, deploy to production using deploy prs.

Implementation details:

  • use wrangler to deploy cloudflare workers
  • on merge to main deploy to a staging worker
  • deploy prs to release to deploy to production same as other repos

Follow-ups

  • Once deployed and tested, update cloudflare config to serve this worker from all associated domains
  • Remove the artsy-eigen-web-association dep from consuming repos

@brainbicycle brainbicycle self-assigned this Oct 24, 2024
@brainbicycle brainbicycle changed the title feat: simplify deeplink updates feat: simplify deeplink updates, use cloudflare worker Oct 24, 2024
@brainbicycle brainbicycle requested a review from a team October 24, 2024 16:12
await worker.stop();
});

it("should return the apple-app-site-association JSON on the correct route", async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @brainbicycle - I couldn't quite figure out how to test that other worker in MP 👌

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah i thought this was gonna be a pain but was pleasantly surprised! https://developers.cloudflare.com/workers/wrangler/api/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I tried to get some basic test going in Metaphysics but was unsuccessful... possibly due to the worker's usage of the cache API.

Copy link
Member

@damassi damassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is such a solid / modern improvement over this whole complicated process. Dang! Very nice work 💯

@brainbicycle brainbicycle merged commit 247f9cb into main Oct 28, 2024
3 checks passed
@brainbicycle brainbicycle deleted the brian/simplify-deeplink-updates branch October 28, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants