Skip to content

Commit 2782155

Browse files
committed
fix(web): env variable errors
1 parent 5841574 commit 2782155

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

web/.env.devnet.public

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Do not enter sensitive information here.
2+
export REACT_APP_DEPLOYMENT=devnet
3+
export REACT_APP_ARBSEPOLIA_SUBGRAPH=https://api.thegraph.com/subgraphs/name/kemuru/curate-v2-devnet
4+
export REACT_APP_STATUS_URL=https://curate-v2-devnet.betteruptime.com/badge
5+
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=14782082

web/.env.local.public

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Do not enter sensitive information here.
2+
export REACT_APP_DEPLOYMENT=devnet
3+
export REACT_APP_ARBSEPOLIA_SUBGRAPH=https://api.thegraph.com/subgraphs/name/kemuru/curate-v2-devnet

web/.env.testnet.public

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Do not enter sensitive information here.
2+
export REACT_APP_DEPLOYMENT=testnet
3+
export REACT_APP_ARBSEPOLIA_SUBGRAPH=
4+
export REACT_APP_STATUS_URL=https://curate-v2.betteruptime.com/badge

web/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ parcel-bundle-reports
2222
.env.development.local
2323
.env.test.local
2424
.env.production.local
25+
!.env.devnet.public
26+
!.env.local.public
27+
!.env.testnet.public
2528

2629
# generated code
2730
src/hooks/contracts

web/scripts/gitInfo.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const execSyncWrapper = (command) => {
1717
const main = () => {
1818
let version = packageJson.version;
1919
let gitCommitHash = execSyncWrapper("git rev-parse HEAD");
20-
if(!gitCommitHash) {
21-
throw error("No git commit hash found, using 'unknown'");
22-
}
2320
let gitCommitShortHash = execSyncWrapper("git rev-parse --short=7 HEAD");
2421
let gitBranch = execSyncWrapper("git rev-parse --abbrev-ref HEAD");
2522
let gitTags = execSyncWrapper("git tag --points-at HEAD | tr '\n' ',' | sed 's/,$//'");

web/src/utils/getGraphqlUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { arbitrumSepolia } from "wagmi/chains";
22

33
export const getGraphqlUrl = (chainId: number = arbitrumSepolia.id) =>
4-
process.env.REACT_APP_ARBSEPOLIA_SUBGRAPH ?? "Wrong";
4+
process.env.REACT_APP_ARBSEPOLIA_SUBGRAPH ?? "Wrong Subgraph URL. Please check the environment variables.";

0 commit comments

Comments
 (0)