yarn install && yarn build && yarn export
You should set these env variables accordingly for the app to work.
cp exmaple.env .env.local
vim .env.local
Specify url of Nance backend as NEXT_PUBLIC_NANCE_API_URL
, and your space id as NEXT_PUBLIC_OVERRIDE_SPACE
.
Some tasks need to run at specific times, this is done by querying Nance-auto. We need a shared secret, NANCE_AUTO_KEY
, to verify requests.
We need Infura RPC to interact with Ethereum. Please specify NEXT_PUBLIC_INFURA_KEY
.
To get infomation of Juicebox projects, we need to specify the subgraph url of Juicebox: JUICEBOX_SUBGRAPH_KEY
.
To find delegations, we need to specify the subgraph url of Snapshot: NEXT_PUBLIC_SNAPSHOT_SUBGRAPH_ID
To support session, you need to implement backend for NextAuth and set two env variables: NEXTAUTH_DOMAINS
(a comma separated list of approved domains, no https://) and NEXTAUTH_SECRET
NEXT_PUBLIC_ETHERSCAN_KEY
Etherscan API Key, used to retrieve contract ABI when adding custom transaction action to proposal.
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
TENDERLY_ACCESS_KEY
, this will be used to run simulation.
We use the Discord API to fetch a user's guilds (serves) and guild channels when creating a Nance space. To do this you need to gather the following from the Discord Developer Portal:
NEXT_PUBLIC_DISCORD_CLIENT_ID
NEXT_PUBLIC_DISCORD_REDIRECT_URI_BASE
(need to add this in your Discord Developer Portal as well)DISCORD_CLIENT_SECRET
DISCORD_NANCE_BOT_KEY
We use a Discord webhook to alert us when someone fills out a contact form. To do this you need to set:
DISCORD_CONTACT_WEBHOOK
We use a hosted Redis instance on Upstash to store a user's Discord session and link it to their wallet. To do this you need to set:
REDIS_HOST
REDIS_PORT
REDIS_PASSWORD