forked from Stand-With-Crypto/swc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
168 lines (132 loc) · 7.66 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Next.js docs use a .env.local file for local development, but because other libraries
# (e.g. Prisma) need a .env file (not .env.local), we standardize everything to .env
# When running with this template you will see a bunch of "missing env var" warnings
# If you need to access any features that won't work because of missing env vars, follow the comments to add them
# These values can be generated by creating a personal free account and generating your own UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN via https://console.upstash.com/redis
# - Go to the link above, and create your own personal account.
# - Create your own personal Redis database with any name you want. Set the region to `us-east-1`. You can leave any other settings untouched.
# - Once the Redis database is created, go to its details and scroll down. You should see the URL and the token.
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
# These values can be generated by creating a free account and generating your own client ID/secret at https://thirdweb.com/dashboard/settings.
NEXT_PUBLIC_THIRDWEB_CLIENT_ID=
THIRD_WEB_CLIENT_SECRET=
# - Run in terminal: `npm i -g ethers && node -e "console.log(new require('ethers').Wallet.createRandom().privateKey)"`.
# - Copy-paste the output below.
THIRDWEB_AUTH_PRIVATE_KEY=
# These values can be generated by creating a free Mixpanel account, creating a new Mixpanel project, then copy-pasting the "Project Token" from https://mixpanel.com/settings/project/
NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=
# You can get this by creating a project through google console, see https://support.google.com/googleapi/answer/6158862?hl=en
# Your API key will need access to the following APIs:
# - Google Civic Information API
# - Places API (New)
# - Places API
NEXT_PUBLIC_GOOGLE_CIVIC_API_KEY=
NEXT_PUBLIC_GOOGLE_PLACES_API_KEY=
GOOGLE_PLACES_BACKEND_API_KEY=$NEXT_PUBLIC_GOOGLE_PLACES_API_KEY
# You can get this by creating a free Sentgrid account and generating your api key at https://app.sendgrid.com/settings/api_keys
# and setting up a sender at https://app.sendgrid.com/settings/sender_auth
SENDGRID_API_KEY=
SENDGRID_SENDER=
SENDGRID_WEBHOOK_VERIFICATION_KEY=
# Create a new Ethereum wallet with your preferred wallet provider (e.g. MetaMask, Coinbase Wallet, etc.) and paste the private key here.
# This wallet will be used to perform server-side checks for the current transaction fees of an airdrop.
# The wallet does not need to have any funds.
AIRDROP_FEE_ESTIMATION_WALLET_PRIVATE_KEY=
# If you are not a core contributor, you should use docker compose and leave this as is
# If you are a core contributor you can use SWC PlanetScale, for that follow the steps below:
# - Request access to the Stand With Crypto PlanetScale account (reach out to a core contributor for an invitation).
# - Once you receive your invite, you'll want to login and go to the `swc-web` database.
# - Click the "Branches" tab.
# - Click "New Branch" button.
# - Name the branch "[yourgithubusername]-local" and set the base branch to "testing".
# - Press "Create Branch".
# - After your branch has initialized, press the "Connect" button.
# - Create a user with the Admin role, and press "Create Password".
# - In the next screen, find the "Connect With" select dropdown and select "Prisma". Copy paste the resulting URL below.
DATABASE_URL="mysql://root:root@localhost:3306/swc-web"
# https://github.com/keonik/prisma-erd-generator?tab=readme-ov-file#disabled
DISABLE_ERD="true"
# Leave as is. This is the default port for the local development server.
NEXT_PUBLIC_THIRDWEB_AUTH_DOMAIN="localhost:3000"
NEXT_PUBLIC_ENVIRONMENT="local"
# ETH address for your local web3 wallet of choice that you will be connecting to the app.
# Fill it with your crypto address or leave it as a dummy value
LOCAL_USER_CRYPTO_ADDRESS="0x0000000000000000000000000000000000000000"
# Logger maximum verbosity level to display
# All levels to the right of the one selected will show
NEXT_PUBLIC_LOG_LEVEL="info" # debug | info | warn | error | custom
SUPPRESS_SENTRY_ERRORS_ON_LOCAL="true"
# Whether we use Capitol Canary or Twilio to send SMS
# capitol-canary | twilio
SMS_PROVIDER="capitol-canary"
# Twilio API keys
# You can get these by creating a new Twilio account and generating an API key
# https://www.twilio.com/docs/iam/keys/api-key
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_MESSAGING_SERVICE_SID=
# This variables depend on the twilio phone number type
# https://help.twilio.com/articles/115002943027
MESSAGE_SEGMENTS_PER_SECOND=""
MAX_QUEUE_LENGTH=""
# Whether or not to log the sql queries coming from Prisma
LOG_DATABASE="false"
# Reduces the number of pre-generated pages to speed up local development/preview deploys.
# Set to false if you need to test logic specific to build pregeneration
MINIMIZE_PAGE_PRE_GENERATION="true"
# If you want to test the cookie consent banner locally without having to clear the cookie every time, set this to true.
NEXT_PUBLIC_DEBUG_COOKIE_CONSENT="false"
# Verified partner secret keys
VERIFIED_SWC_PARTNER_SECRET_COINBASE="super_secret_coinbase_partner_key"
# Coinbase Commerce API key
# You can get this by creating a new API key in your Coinbase Commerce account
# https://docs.cloud.coinbase.com/commerce-onchain/docs/creating-api-key
COINBASE_COMMERCE_API_KEY="coinbase_commerce_secret_key"
# Allows to create a live event action without checking the event date
NEXT_PUBLIC_BYPASS_LIVE_EVENT_DURATION_CHECK="false"
# Allows to create a tweeted at person campaign action without checking the campaign date
NEXT_PUBLIC_BYPASS_TWEETED_AT_PERSON_CAMPAIGN_DURATION_CHECK="false"
# Allows to create user actions without checking for recently created actions with the same type
USER_ACTION_BYPASS_SPAM_CHECK="true"
# These are contract addresses for minting and db registration
# These values are here as dummys for database seed
LEGACY_NFT_DEPLOYER_WALLET="0x0000000000000000000000000000000000000000"
SWC_DOT_ETH_WALLET="0x0000000000000000000000000000000000000000"
SWC_SHIELD_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
CALL_REPRESENTATIVE_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
I_AM_A_VOTER_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
STAND_WITH_CRYPTO_LEGACY_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
STAND_WITH_CRYPTO_SUPPORTER_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
LA_CRYPTO_EVENT_2024_03_04_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
SWC_PIZZA_DAY_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
SWC_VOTER_ATTESTATION_NFT_CONTRACT_ADDRESS="0x0000000000000000000000000000000000000000"
######################################
############## OPTIONAL ##############
######################################
# If you have a different contract you want to display at the mint action, put it's address here
NEXT_PUBLIC_OVERRIDE_MINT_NFT_CONTRACT_ADDRESS=
# DTSI integration keys, the api will be mocked if empty
DTSI_WEBHOOK_SECRET=
DO_THEY_SUPPORT_IT_API_KEY=
# Database hosting services have a limit on rows per query. Leave blank if not applicable
DATABASE_QUERY_LIMIT=""
CAPITOL_CANARY_API_KEY=
CAPITOL_CANARY_API_SECRET=
# Custom Stop/Unstop keyowrd used in Twilio SMS flow
SWC_STOP_SMS_KEYWORD=
SWC_UNSTOP_SMS_KEYWORD=
# Engine used to airdrop NFTs
THIRDWEB_ENGINE_URL=
THIRDWEB_ENGINE_ACCESS_TOKEN=
# Used in preview as the app's origin
NEXT_PUBLIC_VERCEL_URL=
# BuilderIO
BUILDER_IO_PUBLIC_KEY='123'
BUILDER_IO_PRIVATE_KEY='123'
# Github repository read access token
GITHUB_TOKEN=''
# Google Tag Manager
# You can get this by creating a new Google Tag Manager account and generating a container ID
# https://support.google.com/tagmanager/answer/6103696?hl=en
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID='GTM-'