-
Notifications
You must be signed in to change notification settings - Fork 34
/
next.config.js
executable file
·92 lines (90 loc) · 3.47 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
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
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: './public/',
register: true,
skipWaiting: true,
runtimeCaching,
buildExcludes: [/middleware-manifest.json$/]
});
module.exports = withPWA({
async rewrites() {
return [
{
source: '/js/script.js',
destination: 'https://plausible.io/js/script.js'
},
{
source: '/api/event',
destination: 'https://plausible.io/api/event'
}
];
},
env: {
/* 🔵 - Yearn Finance **************************************************
** Stuff used for the SEO or some related elements, like the title, the
** github url etc.
** - WEBSITE_URI is used to display the og image and get the base URI
** - WEBSITE_NAME is used as name displayed on the top of the tab in
** the browser.
** - WEBSITE_TITLE should be the name of your website. It may be used
** by third parties to display your app name (coinbase for instance)
** - WEBSITE_DESCRIPTION is used in the meta tags
** - PROJECT_GITHUB_URL should be the link to your project on GitHub
**********************************************************************/
WEBSITE_URI: 'https://ape.tax/',
WEBSITE_NAME: 'ape.tax',
WEBSITE_TITLE: 'ape.tax',
WEBSITE_DESCRIPTION: 'Experimental Experiments Registry',
PROJECT_GITHUB_URL: 'https://github.com/saltyfacu/ape-tax',
/* 🔵 - Yearn Finance **************************************************
** Config over the RPC
**********************************************************************/
WEB_SOCKET_URL: {
1: process.env.WS_URL_MAINNET,
10: process.env.WS_URL_OPTIMISM,
137: process.env.WS_URL_POLYGON,
250: process.env.WS_URL_FANTOM,
42161: process.env.WS_URL_ARBITRUM,
43114: process.env.WS_URL_AVALANCHE
},
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
10: process.env.RPC_URL_OPTIMISM,
137: process.env.RPC_URL_POLYGON || 'https://polygon-rpc.com',
250: process.env.RPC_URL_FANTOM,
42161: process.env.RPC_URL_ARBITRUM,
43114: process.env.RPC_URL_AVALANCHE
},
SECRET: process.env.SECRET,
FTMSCAN_API: process.env.FTMSCAN_API,
ETHERSCAN_API: process.env.ETHERSCAN_API,
POLYGONSCAN_API: process.env.POLYGONSCAN_API,
OPTISCAN_API: process.env.OPTISCAN_API,
SNOWTRACE_API: process.env.SNOWTRACE_API,
MORALIS_ARBITRUM_KEY: process.env.MORALIS_ARBITRUM_KEY,
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID,
FORKED_CHAIN_ID: process.env.FORKED_CHAIN_ID,
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
ALCHEMY_API_KEY: process.env.ALCHEMY_API_KEY,
INFURA_PROJECT_ID: process.env.INFURA_PROJECT_ID,
AURA_BOOSTER_ADDRESS: '0x7818A1DA7BD1E64c199029E86Ba244a9798eEE10',
YEARN_BALANCER_FACTORY_ADDRESS: '0x03B0E3F8B22933C2b0A7Dfc46C2FdB746a106709',
YEARN_FACTORY_KEEPER_WRAPPER: '0x256e6a486075fbAdbB881516e9b6b507fd082B5D',
YDAEMON_BASE_URI: process.env.YDAEMON_BASE_URI,
YEARN_ROUTER: {
1: '0x1112dbcf805682e828606f74ab717abf4b4fd8de',
137: '0x1112dbcf805682e828606f74ab717abf4b4fd8de',
43114: '0x1112dbcf805682e828606f74ab717abf4b4fd8de',
1337: '0x1112dbcf805682e828606f74ab717abf4b4fd8de',
8453: '0x1112dbcf805682e828606f74ab717abf4b4fd8de'
},
APR_ORACLE_V3: {
1:'0x1981AD9F44F2EA9aDd2dC4AD7D075c102C70aF92',
137: '0x1981AD9F44F2EA9aDd2dC4AD7D075c102C70aF92',
1337: '0x1981AD9F44F2EA9aDd2dC4AD7D075c102C70aF92',
43114: '0x1981AD9F44F2EA9aDd2dC4AD7D075c102C70aF92',
8453: '0x1981AD9F44F2EA9aDd2dC4AD7D075c102C70aF92'
}
}
});