-
Notifications
You must be signed in to change notification settings - Fork 7
/
next.config.js
executable file
·41 lines (39 loc) · 1.32 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
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV !== 'production'
});
const {PHASE_EXPORT} = require('next/constants');
module.exports = (phase) => withPWA({
assetPrefix: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT ? './' : '/',
images: {
formats: ['image/avif', 'image/webp'],
unoptimized: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT, //Exporting image does not support optimization
domains: [
'rawcdn.githack.com',
'raw.githubusercontent.com',
'images.ctfassets.net'
]
},
env: {
/* 🔵 - Yearn Finance **************************************************
** Config over the RPC
**********************************************************************/
WEB_SOCKET_URL: {
1: process.env.WS_URL_MAINNET
},
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY,
REDIS_URL: process.env.REDIS_URL,
SNAPSHOT: process.env.SNAPSHOT,
WEBSITE_URI: process.env.WEBSITE_URI,
CHAIN_ID: process.env.CHAIN_ID,
MULTICALL_ADDRESS: process.env.MULTICALL_ADDRESS,
MINT_CONTRACT_ADDRESS: process.env.MINT_CONTRACT_ADDRESS,
MINT_URL: process.env.MINT_URL,
MINT_PRICE_WEI: process.env.MINT_PRICE_WEI,
}
});