From 20f31b82d5d9fb89c3596c48614fac93318bce94 Mon Sep 17 00:00:00 2001 From: Felipe Forbeck Date: Fri, 10 Jan 2025 10:50:50 -0300 Subject: [PATCH] fix(prod): gateway host --- .github/workflows/deploy-storacha.yml | 2 +- .github/workflows/deploy.yml | 2 +- src/components/services.ts | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-storacha.yml b/.github/workflows/deploy-storacha.yml index 180e552..cefa398 100644 --- a/.github/workflows/deploy-storacha.yml +++ b/.github/workflows/deploy-storacha.yml @@ -138,7 +138,7 @@ jobs: echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.storacha.network" >> .env echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.storacha.network/receipt/" >> .env echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env - echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://freeway.dag.haus" >> .env + echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://w3s.link" >> .env echo "NEXT_PUBLIC_W3UP_GATEWAY_ID=did:web:w3s.link" >> .env echo "NEXT_PUBLIC_IPFS_GATEWAY_URL=https://%ROOT_CID%.ipfs.w3s.link" >> .env echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2977d41..8666389 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -131,7 +131,7 @@ jobs: echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.web3.storage" >> .env echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.web3.storage/receipt/" >> .env echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env - echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://freeway.dag.haus" >> .env + echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://w3s.link" >> .env echo "NEXT_PUBLIC_W3UP_GATEWAY_ID=did:web:w3s.link" >> .env echo "NEXT_PUBLIC_IPFS_GATEWAY_URL=https://%ROOT_CID%.ipfs.w3s.link" >> .env echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env diff --git a/src/components/services.ts b/src/components/services.ts index 5c366ae..03d247f 100644 --- a/src/components/services.ts +++ b/src/components/services.ts @@ -33,9 +33,4 @@ export const serviceConnection = connect({ }), }) -/** - * Using freeway.dag.haus/freeway-staging.dag.haus as the gateway host directly without going through w3s.link - * to avoid the need to avoid access fetch error in production due to the w3s.link CORS policy: - * - Redirect is not allowed for a preflight request. - */ -export const gatewayHost = process.env.NEXT_PUBLIC_W3UP_GATEWAY_HOST ?? 'https://freeway.dag.haus' +export const gatewayHost = process.env.NEXT_PUBLIC_W3UP_GATEWAY_HOST ?? 'https://w3s.link'