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

Move GATEWAY to env and expose ipfs gateway #992

Merged
merged 4 commits into from
Feb 25, 2022
Merged

Conversation

flea89
Copy link
Contributor

@flea89 flea89 commented Feb 16, 2022

Issue
Moving GATEWAY to environment to allow to point to dockerized ipfs gateway in development.

@flea89 flea89 force-pushed the fix/gateway-local-env branch 2 times, most recently from e7b9c2a to 3bb5898 Compare February 16, 2022 13:47
@flea89 flea89 marked this pull request as draft February 16, 2022 13:54
Base automatically changed from miniflare-for-dev to main February 18, 2022 09:36
@flea89 flea89 marked this pull request as ready for review February 18, 2022 10:52
@flea89 flea89 linked an issue Feb 18, 2022 that may be closed by this pull request
@LeslieOA LeslieOA added kind/enhancement A net-new feature or improvement to an existing feature topic/devexp Developer experience improvements, onboard efficiencies, time savers. topic/pot Issues handled by PT. labels Feb 18, 2022
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

thanks for getting this

@@ -43,7 +43,7 @@ bindings = [{ name = "NAME_ROOM", class_name = "NameRoom0" }]
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
zone_id = "7eee3323c1b35b6650568604c65f441e" # web3.storage zone
route = "https://api.web3.storage/*"
vars = { CLUSTER_API_URL = "https://web3.storage.ipfscluster.io/api/", ENV = "production", PG_REST_URL = "https://web3-storage-pgrest-prod.herokuapp.com" }
vars = { CLUSTER_API_URL = "https://web3.storage.ipfscluster.io/api/", ENV = "production", PG_REST_URL = "https://web3-storage-pgrest-prod.herokuapp.com", GATEWAY_URL = "https://ipfs.io" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add this to staging and other envs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!
We definitively need staging to point to https://ipfs.io

For other cloudfare dev envs I would suggest we keep the https://ipfs.io (rather than the local version) to avoid having to create another tunnel, would you agree?

Honestly, I expect now that we have miniflare, that devs would use that for development rather than this (in most cases) so it shouldn't be a big deal, would you agree?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, let's point to ipfs.io

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, ✅

packages/api/src/car.js Show resolved Hide resolved
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM! 👌🏼

@flea89 flea89 merged commit 060b0a5 into main Feb 25, 2022
@flea89 flea89 deleted the fix/gateway-local-env branch February 25, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature topic/devexp Developer experience improvements, onboard efficiencies, time savers. topic/pot Issues handled by PT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unskip CORS test and remove dependency on ipfs.io gateway in tests
3 participants