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

fix: IPFS gateway is not set up in configuration #73

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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