forked from yearn/yearn-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
executable file
·48 lines (46 loc) · 1.57 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
const withPWA = require('next-pwa');
module.exports = withPWA({
images: {
domains: [
'rawcdn.githack.com',
'raw.githubusercontent.com'
]
},
pwa: {
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development'
},
env: {
/* 🔵 - 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,
/* 🔵 - Yearn Finance **************************************************
** Yearn Watch specific config
**********************************************************************/
KNOWN_ENS: {
'0xFEB4acf3df3cDEA7399794D0869ef76A6EfAff52': 'ychad.eth',
'0x846e211e8ba920B353FB717631C015cf04061Cc9': 'dev.ychad.eth'
},
RISK_GH_URL: 'https://raw.githubusercontent.com/yearn/yearn-data-analytics/master/src/risk_framework/risks.json',
RISK_API_URL: 'https://d3971bp2359cnv.cloudfront.net/api',
GRAPH_URL: {
1: 'https://api.thegraph.com/subgraphs/name/rareweasel/yearn-vaults-v2-subgraph-mainnet',
250: 'https://api.thegraph.com/subgraphs/name/bsamuels453/yearn-fantom-validation-grafted',
42161: 'https://api.thegraph.com/subgraphs/name/yearn/yearn-vaults-v2-arbitrum'
}
}
});