Skip to content

Commit

Permalink
feat: upload-api-proxy production url is to aws http gateway instead …
Browse files Browse the repository at this point in the history
…of up.web3.storage (#376)

Motivation
* work around #363 by
not using the domain name that cloudflare workers can't resolve. Instead
bypass that dns rule and just request the aws http gateway domain
  • Loading branch information
gobengo authored Jan 19, 2023
1 parent 119e293 commit 4b068f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/access-api/src/service/upload-api-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ function createUcantoHttpConnection(options) {
const uploadApiEnvironments = {
production: {
audience: /** @type {const} */ ('did:web:web3.storage'),
url: new URL('https://up.web3.storage'),
// dont use up.web3.storage because it won't resolve from inside cloudflare workers
// until resolution of https://github.com/web3-storage/w3protocol/issues/363
url: new URL('https://3bd9h7xn3j.execute-api.us-west-2.amazonaws.com/'),
},
staging: {
audience: /** @type {const} */ ('did:web:staging.web3.storage'),
Expand Down

0 comments on commit 4b068f5

Please sign in to comment.