Skip to content

Commit

Permalink
fix: IPFS gateway is not set up in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
levalleux-ludo committed Oct 5, 2023
1 parent 53effa2 commit f97ea9c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ REACT_APP_ENV_NAME=testing
# REACT_APP_ENV_NAME=staging
# REACT_APP_ENV_NAME=production

# IPFS Gateway
REACT_APP_IPFS_GATEWAY=https://bosonprotocol.infura-ipfs.io/ipfs

# Infura IPFS project ID, used for auth header
REACT_APP_INFURA_IPFS_PROJECT_ID=

Expand Down
23 changes: 0 additions & 23 deletions .fleek.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/ci_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_TESTING: "https://drcenter-test.on.fleek.co/#/exchange/{id}/raise-dispute"
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_STAGING: "https://drcenter-staging.on.fleek.co/#/exchange/{id}/raise-dispute"
REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE_PRODUCTION: "https://disputes.bosonprotocol.io/#/exchange/{id}/raise-dispute"
REACT_APP_IPFS_GATEWAY: "https://bosonprotocol.infura-ipfs.io/ipfs"
REACT_APP_BUYER_SELLER_AGREEMENT_TEMPLATE: "ipfs://QmQ8ZTmmRV15rFaWG9KRyjFRrpaD1o2sDwZoYiWgBaAto6"
REACT_APP_RNFT_LICENSE_TEMPLATE: "ipfs://QmeVkdpKbfHKrPb9tXDXUoPEResEanGpcGANfAjb8bUQYT"
REACT_APP_FAIR_EXCHANGE_POLICY_RULES: "ipfs://QmNqhFGr9NUEMqz3oQC7yUqJG9mt4NZEpV5MCeemVMTSRs"
Expand Down
1 change: 1 addition & 0 deletions src/components/widgets/redeem/Redeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function Redeem() {
licenseTemplate={CONFIG.licenseTemplate as string}
defaultCurrencyTicker="USD"
defaultCurrencySymbol="$"
ipfsGateway={CONFIG.ipfsGateway as string}
ipfsProjectId={CONFIG.ipfsProjectId}
ipfsProjectSecret={CONFIG.ipfsProjectSecret}
children={<></>}
Expand Down
7 changes: 6 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ type ConfigFields =
| "walletConnectProjectId"
| "metaTxApiKey"
| "metaTxApiIds"
| "raiseDisputeForExchange";
| "raiseDisputeForExchange"
| "ipfsGateway";

const envSuffixes: Record<EnvironmentType, string | undefined> = {
testing: "_TESTING",
Expand Down Expand Up @@ -95,6 +96,10 @@ const EnvVariables: Array<{
envVar: "REACT_APP_RAISE_DISPUTE_FOR_EXCHANGE",
envDependent: true,
configField: "raiseDisputeForExchange"
},
{
envVar: "REACT_APP_IPFS_GATEWAY",
configField: "ipfsGateway"
}
];

Expand Down

0 comments on commit f97ea9c

Please sign in to comment.