Commit 16ffb75 1 parent 4aebe48 commit 16ffb75 Copy full SHA for 16ffb75
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ jobs:
138
138
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.storacha.network" >> .env
139
139
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.storacha.network/receipt/" >> .env
140
140
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env
141
- echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://w3s.link " >> .env
141
+ echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://freeway.dag.haus " >> .env
142
142
echo "NEXT_PUBLIC_W3UP_GATEWAY_ID=did:web:w3s.link" >> .env
143
143
echo "NEXT_PUBLIC_IPFS_GATEWAY_URL=https://%ROOT_CID%.ipfs.w3s.link" >> .env
144
144
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ jobs:
131
131
echo "NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.web3.storage" >> .env
132
132
echo "NEXT_PUBLIC_W3UP_RECEIPTS_URL=https://up.web3.storage/receipt/" >> .env
133
133
echo "NEXT_PUBLIC_W3UP_PROVIDER=did:web:web3.storage" >> .env
134
- echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://w3s.link " >> .env
134
+ echo "NEXT_PUBLIC_W3UP_GATEWAY_HOST=https://freeway.dag.haus " >> .env
135
135
echo "NEXT_PUBLIC_W3UP_GATEWAY_ID=did:web:w3s.link" >> .env
136
136
echo "NEXT_PUBLIC_IPFS_GATEWAY_URL=https://%ROOT_CID%.ipfs.w3s.link" >> .env
137
137
echo "NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1OCJ1qF6A5ufQX5vM5DWg4rA" >> .env
Original file line number Diff line number Diff line change @@ -33,4 +33,9 @@ export const serviceConnection = connect<Service>({
33
33
} ) ,
34
34
} )
35
35
36
- export const gatewayHost = process . env . NEXT_PUBLIC_W3UP_GATEWAY_HOST ?? 'https://w3s.link'
36
+ /**
37
+ * Using freeway.dag.haus/freeway-staging.dag.haus as the gateway host directly without going through w3s.link
38
+ * to avoid the need to avoid access fetch error in production due to the w3s.link CORS policy:
39
+ * - Redirect is not allowed for a preflight request.
40
+ */
41
+ export const gatewayHost = process . env . NEXT_PUBLIC_W3UP_GATEWAY_HOST ?? 'https://freeway.dag.haus'
You can’t perform that action at this time.
0 commit comments