generated from yearn/web-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnext.config.js
executable file
·54 lines (52 loc) · 2.12 KB
/
next.config.js
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
module.exports = ({
images: {
domains: ['rawcdn.githack.com']
},
env: {
/* 🔵 - Yearn Finance **************************************************
** Stuff used for the SEO or some related elements, like the title, the
** github url etc.
**********************************************************************/
WEBSITE_URI: 'https://partners.yearn.finance/',
WEBSITE_NAME: 'Yearn Partners',
WEBSITE_TITLE: 'Yearn Partners',
WEBSITE_DESCRIPTION: 'Yearn is the permissionless DeFi base layer enabling infinite possibilities for buildooors',
PROJECT_GITHUB_URL: 'https://github.com/yearn/yearn-template',
/* 🔵 - Yearn Finance **************************************************
** Some config used to control the behaviour of the web library. By
** default, all of theses are set to false.
** USE_WALLET: should we allow the user to connect a wallet via
** metamask or wallet connect?
** USE_PRICES: should we fetch the prices for a list of tokens? If true
** the CG_IDS array should be populated with the tokens
** to fetch.
** USE_PRICE_TRI_CRYPTO: should we fetch the special Tri Crypto token
** price? (require blockchain call)
** USE_NETWORKS: indicate if the app should be able to change networks
**********************************************************************/
USE_WALLET: true,
USE_PRICES: false,
USE_PRICE_TRI_CRYPTO: false,
USE_NETWORKS: false,
CG_IDS: [],
TOKENS: [],
/* 🔵 - Yearn Finance **************************************************
** Config over the RPC
**********************************************************************/
WEB_SOCKET_URL: {
1: process.env.WS_URL_MAINNET,
250: process.env.WS_URL_FANTOM,
42161: process.env.WS_URL_ARBITRUM
},
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
250: process.env.RPC_URL_FANTOM,
42161: process.env.RPC_URL_ARBITRUM
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
YVISION_BASE_URI: 'https://api.yearn.vision'
// YVISION_BASE_URI: 'https://api.staging.yearn.vision'
}
});