From fb5be01366300326ac64ed5d8fc6b1ba4f0a9833 Mon Sep 17 00:00:00 2001 From: Atris Date: Thu, 12 Oct 2023 15:52:24 +0200 Subject: [PATCH] docs: update .env.examples (#2443) --- packages/builder/.env.example | 74 +++++++++++++++------------- packages/grant-explorer/.env.example | 63 ++++++++++++++--------- packages/round-manager/.env.example | 69 +++++++++++++++++--------- 3 files changed, 125 insertions(+), 81 deletions(-) diff --git a/packages/builder/.env.example b/packages/builder/.env.example index 3c02a049a6..6af20f5585 100644 --- a/packages/builder/.env.example +++ b/packages/builder/.env.example @@ -1,51 +1,55 @@ -# Builder-specific env vars -REACT_APP_PUBLIC_GITHUB_CLIENT_ID= -REACT_APP_PUBLIC_GITHUB_CALLBACK= -REACT_APP_PASSPORT_IAM_URL= -REACT_APP_PASSPORT_PROCEDURE_URL= -REACT_APP_PUBLIC_PASSPORT_TWITTER_CALLBACK= -REACT_APP_PASSPORT_IAM_SERVER= -REACT_APP_LOCALCHAIN= -REACT_APP_DISABLE_PROJECTS_MARKDOWN= - -# Shared env vars -REACT_APP_ENV= +# development for local, production for prod builds +REACT_APP_ENV=development +# Bring your own API key REACT_APP_ALCHEMY_ID= REACT_APP_INFURA_ID= REACT_APP_WALLETCONNECT_ID= REACT_APP_WALLETCONNECT_PROJECT_ID= -REACT_APP_ALLOW_URL_DEBUG_MODE= -REACT_APP_DEBUG_MODE= - -REACT_APP_ALLO_API_URL= - -REACT_APP_GRANT_EXPLORER= +# Get your credentials at https://www.pinata.cloud/ +REACT_APP_PINATA_GATEWAY= +REACT_APP_PINATA_JWT= +# Get your own key at https://scorer.gitcoin.co +REACT_APP_PASSPORT_API_KEY= +REACT_APP_PASSPORT_API_ENDPOINT="https://api.scorer.gitcoin.co" +# This is what the production indexer uses +REACT_APP_PASSPORT_API_COMMUNITY_ID="335" + +# Allow overriding permissions checks by appending ?debug=true to the URL +REACT_APP_ALLOW_URL_DEBUG_MODE=true + +# Disable permission checks by default +REACT_APP_DEBUG_MODE=false + +# URL of the indexer. http://localhost:8080 for local indexer +REACT_APP_ALLO_API_URL="https://indexer-production.fly.dev" + +# Subgraph URLs +REACT_APP_SUBGRAPH_ARBITRUM_API="https://api.thegraph.com/subgraphs/name/gitcoinco/gitcoin-grants-arbitrum-one" +REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-arbitrum-goerli" +REACT_APP_SUBGRAPH_AVALANCHE_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-avalanche-mainnet" +REACT_APP_SUBGRAPH_FANTOM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-mainnet" +REACT_APP_SUBGRAPH_FANTOM_TESTNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-testnet" +REACT_APP_SUBGRAPH_FUJI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fuji-testnet" +REACT_APP_SUBGRAPH_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-goerli-testnet" +REACT_APP_SUBGRAPH_MAINNET_API="https://gateway.thegraph.com/api/db01d72285a54fa4864050a870e9b16d/subgraphs/id/Ba4YGqqyYVFd55zcQnXS3XYTjJARKe93LY6qNgFbrHQz" +REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-optimism-mainnet" +REACT_APP_SUBGRAPH_PGN_API="https://graph-gitcoin-mainnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_PGN_TESTNET_API="https://graph-gitcoin-testnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_POLYGON_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-polygon" +REACT_APP_SUBGRAPH_POLYGON_MUMBAI_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-mumbai" + +# Variables below are optional for local development REACT_APP_DATADOG_APPLICATION_ID= REACT_APP_DATADOG_CLIENT_TOKEN= REACT_APP_DATADOG_SERVICE= REACT_APP_DATADOG_SITE= -REACT_APP_PASSPORT_API_COMMUNITY_ID= -REACT_APP_PASSPORT_API_ENDPOINT= -REACT_APP_PASSPORT_API_KEY= - -REACT_APP_PINATA_GATEWAY= -REACT_APP_PINATA_JWT= - REACT_APP_SENTRY_AUTH_TOKEN= REACT_APP_SENTRY_DSN= -REACT_APP_SUBGRAPH_ARBITRUM_API= -REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API= -REACT_APP_SUBGRAPH_FANTOM_MAINNET_API= -REACT_APP_SUBGRAPH_FANTOM_TESTNET_API= -REACT_APP_SUBGRAPH_GOERLI_API= -REACT_APP_SUBGRAPH_MAINNET_API= -REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API= -REACT_APP_SUBGRAPH_PGN_API= -REACT_APP_SUBGRAPH_PGN_TESTNET_API= - REACT_APP_TAG_MANAGER= + +REACT_APP_INTERCOM_APP_ID= diff --git a/packages/grant-explorer/.env.example b/packages/grant-explorer/.env.example index c0abe712fe..6af20f5585 100644 --- a/packages/grant-explorer/.env.example +++ b/packages/grant-explorer/.env.example @@ -1,40 +1,55 @@ -REACT_APP_ENV= +# development for local, production for prod builds +REACT_APP_ENV=development +# Bring your own API key REACT_APP_ALCHEMY_ID= REACT_APP_INFURA_ID= REACT_APP_WALLETCONNECT_ID= REACT_APP_WALLETCONNECT_PROJECT_ID= -REACT_APP_ALLOW_URL_DEBUG_MODE= -REACT_APP_DEBUG_MODE= - -REACT_APP_ALLO_API_URL= - -REACT_APP_GRANT_EXPLORER= +# Get your credentials at https://www.pinata.cloud/ +REACT_APP_PINATA_GATEWAY= +REACT_APP_PINATA_JWT= +# Get your own key at https://scorer.gitcoin.co +REACT_APP_PASSPORT_API_KEY= +REACT_APP_PASSPORT_API_ENDPOINT="https://api.scorer.gitcoin.co" +# This is what the production indexer uses +REACT_APP_PASSPORT_API_COMMUNITY_ID="335" + +# Allow overriding permissions checks by appending ?debug=true to the URL +REACT_APP_ALLOW_URL_DEBUG_MODE=true + +# Disable permission checks by default +REACT_APP_DEBUG_MODE=false + +# URL of the indexer. http://localhost:8080 for local indexer +REACT_APP_ALLO_API_URL="https://indexer-production.fly.dev" + +# Subgraph URLs +REACT_APP_SUBGRAPH_ARBITRUM_API="https://api.thegraph.com/subgraphs/name/gitcoinco/gitcoin-grants-arbitrum-one" +REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-arbitrum-goerli" +REACT_APP_SUBGRAPH_AVALANCHE_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-avalanche-mainnet" +REACT_APP_SUBGRAPH_FANTOM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-mainnet" +REACT_APP_SUBGRAPH_FANTOM_TESTNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-testnet" +REACT_APP_SUBGRAPH_FUJI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fuji-testnet" +REACT_APP_SUBGRAPH_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-goerli-testnet" +REACT_APP_SUBGRAPH_MAINNET_API="https://gateway.thegraph.com/api/db01d72285a54fa4864050a870e9b16d/subgraphs/id/Ba4YGqqyYVFd55zcQnXS3XYTjJARKe93LY6qNgFbrHQz" +REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-optimism-mainnet" +REACT_APP_SUBGRAPH_PGN_API="https://graph-gitcoin-mainnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_PGN_TESTNET_API="https://graph-gitcoin-testnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_POLYGON_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-polygon" +REACT_APP_SUBGRAPH_POLYGON_MUMBAI_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-mumbai" + +# Variables below are optional for local development REACT_APP_DATADOG_APPLICATION_ID= REACT_APP_DATADOG_CLIENT_TOKEN= REACT_APP_DATADOG_SERVICE= REACT_APP_DATADOG_SITE= -REACT_APP_PASSPORT_API_COMMUNITY_ID= -REACT_APP_PASSPORT_API_ENDPOINT= -REACT_APP_PASSPORT_API_KEY= - -REACT_APP_PINATA_GATEWAY= -REACT_APP_PINATA_JWT= - REACT_APP_SENTRY_AUTH_TOKEN= REACT_APP_SENTRY_DSN= -REACT_APP_SUBGRAPH_ARBITRUM_API= -REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API= -REACT_APP_SUBGRAPH_FANTOM_MAINNET_API= -REACT_APP_SUBGRAPH_FANTOM_TESTNET_API= -REACT_APP_SUBGRAPH_GOERLI_API= -REACT_APP_SUBGRAPH_MAINNET_API= -REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API= -REACT_APP_SUBGRAPH_PGN_API= -REACT_APP_SUBGRAPH_PGN_TESTNET_API= - REACT_APP_TAG_MANAGER= + +REACT_APP_INTERCOM_APP_ID= diff --git a/packages/round-manager/.env.example b/packages/round-manager/.env.example index c0abe712fe..9472e040d8 100644 --- a/packages/round-manager/.env.example +++ b/packages/round-manager/.env.example @@ -1,40 +1,65 @@ -REACT_APP_ENV= +#### Round-manager specific: +REACT_APP_BUILDER_URL="https://builder.gitcoin.co" +REACT_APP_GRANT_EXPLORER="https://explorer.gitcoin.co" + +# Whether to enable direct grants functionality. Cannot be off, included for posterity. +REACT_APP_DIRECT_GRANT_ENABLED="true" + +#### End round-manager specific + +# development for local, production for prod builds +REACT_APP_ENV=development + +# Bring your own API key REACT_APP_ALCHEMY_ID= REACT_APP_INFURA_ID= REACT_APP_WALLETCONNECT_ID= REACT_APP_WALLETCONNECT_PROJECT_ID= -REACT_APP_ALLOW_URL_DEBUG_MODE= -REACT_APP_DEBUG_MODE= +# Get your credentials at https://www.pinata.cloud/ +REACT_APP_PINATA_GATEWAY= +REACT_APP_PINATA_JWT= + +# Get your own key at https://scorer.gitcoin.co +REACT_APP_PASSPORT_API_KEY= +REACT_APP_PASSPORT_API_ENDPOINT="https://api.scorer.gitcoin.co" +# This is what the production indexer uses +REACT_APP_PASSPORT_API_COMMUNITY_ID="335" + +# Allow overriding permissions checks by appending ?debug=true to the URL +REACT_APP_ALLOW_URL_DEBUG_MODE=true -REACT_APP_ALLO_API_URL= +# Disable permission checks by default +REACT_APP_DEBUG_MODE=false -REACT_APP_GRANT_EXPLORER= +# URL of the indexer. http://localhost:8080 for local indexer +REACT_APP_ALLO_API_URL="https://indexer-production.fly.dev" +# Subgraph URLs +REACT_APP_SUBGRAPH_ARBITRUM_API="https://api.thegraph.com/subgraphs/name/gitcoinco/gitcoin-grants-arbitrum-one" +REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-arbitrum-goerli" +REACT_APP_SUBGRAPH_AVALANCHE_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-avalanche-mainnet" +REACT_APP_SUBGRAPH_FANTOM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-mainnet" +REACT_APP_SUBGRAPH_FANTOM_TESTNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fantom-testnet" +REACT_APP_SUBGRAPH_FUJI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-fuji-testnet" +REACT_APP_SUBGRAPH_GOERLI_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-goerli-testnet" +REACT_APP_SUBGRAPH_MAINNET_API="https://gateway.thegraph.com/api/db01d72285a54fa4864050a870e9b16d/subgraphs/id/Ba4YGqqyYVFd55zcQnXS3XYTjJARKe93LY6qNgFbrHQz" +REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API="https://api.thegraph.com/subgraphs/name/gitcoinco/grants-round-optimism-mainnet" +REACT_APP_SUBGRAPH_PGN_API="https://graph-gitcoin-mainnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_PGN_TESTNET_API="https://graph-gitcoin-testnet.hirenodes.io/subgraphs/name/gitcoin/allo" +REACT_APP_SUBGRAPH_POLYGON_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-polygon" +REACT_APP_SUBGRAPH_POLYGON_MUMBAI_API="https://api.thegraph.com/subgraphs/name/allo-protocol/grants-round-mumbai" + +# Variables below are optional for local development REACT_APP_DATADOG_APPLICATION_ID= REACT_APP_DATADOG_CLIENT_TOKEN= REACT_APP_DATADOG_SERVICE= REACT_APP_DATADOG_SITE= -REACT_APP_PASSPORT_API_COMMUNITY_ID= -REACT_APP_PASSPORT_API_ENDPOINT= -REACT_APP_PASSPORT_API_KEY= - -REACT_APP_PINATA_GATEWAY= -REACT_APP_PINATA_JWT= - REACT_APP_SENTRY_AUTH_TOKEN= REACT_APP_SENTRY_DSN= -REACT_APP_SUBGRAPH_ARBITRUM_API= -REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API= -REACT_APP_SUBGRAPH_FANTOM_MAINNET_API= -REACT_APP_SUBGRAPH_FANTOM_TESTNET_API= -REACT_APP_SUBGRAPH_GOERLI_API= -REACT_APP_SUBGRAPH_MAINNET_API= -REACT_APP_SUBGRAPH_OPTIMISM_MAINNET_API= -REACT_APP_SUBGRAPH_PGN_API= -REACT_APP_SUBGRAPH_PGN_TESTNET_API= - REACT_APP_TAG_MANAGER= + +REACT_APP_INTERCOM_APP_ID=