-
Notifications
You must be signed in to change notification settings - Fork 3
/
next.config.js
executable file
·85 lines (79 loc) · 2.51 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
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV !== 'production'
});
const withTM = require('next-transpile-modules')(['@yearn-finance/web-lib'], {resolveSymlinks: false});
const {PHASE_EXPORT} = require('next/constants');
module.exports = phase =>
withTM(
withPWA({
assetPrefix: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT ? './' : '/',
images: {
unoptimized: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT,
domains: [
'rawcdn.githack.com',
'raw.githubusercontent.com',
'ipfs.io',
's3.amazonaws.com',
'1inch.exchange',
'hut34.io',
'www.coingecko.com',
'defiprime.com',
'cdn.furucombo.app',
'gemini.com',
'messari.io',
'ethereum-optimism.github.io',
'tryroll.com',
'logo.assets.tkn.eth.limo',
'umaproject.org',
'cloudflare-ipfs.com',
'assets.smold.app'
]
},
async rewrites() {
return [
{
source: '/js/script.js',
destination: 'https://plausible.io/js/script.js'
},
{
source: '/api/event',
destination: 'https://plausible.io/api/event'
}
];
},
redirects() {
return [
{
source: '/github',
destination: 'https://github.com/SmolDapp/dumpservices',
permanent: true
}
];
},
env: {
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
1337: 'http://localhost:8080'
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY,
RPC_URL_OPTIMISM_YEARN: process.env.RPC_URL_OPTIMISM_YEARN,
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID,
SMOL_ASSETS_URL: 'https://assets.smold.app/api',
BEBOP_API_ENDPOINT: 'https://api.bebop.xyz/jam/polygon/v1',
RECEIVER_ADDRESS: '0x10001192576E8079f12d6695b0948C2F41320040',
DISPERSE_ADDRESS: '0xD152f549545093347A162Dce210e7293f1452150',
COWSWAP_GPV2SETTLEMENT_ADDRESS: '0x9008D19f58AAbD9eD0D60971565AA8510560ab41',
COWSWAP_APP_DATA: '0x36feff31915bd0063a70753d8b240559cc79b55029756877924452f43b7090b4',
BEBOP_SPENDER_ADDRESS: '0xfE96910cF84318d1B8a5e2a6962774711467C0be',
BEBOP_SETTLEMENT_ADDRESS: '0xbEbEbEb035351f58602E0C1C8B59ECBfF5d5f47b',
COWSWAP_SPENDER_ADDRESS: '0xC92E8bdf79f0507f65a392b0ab4667716BFE0110',
BEBOP_JAM_KEY: process.env.BEBOP_JAM_KEY,
SHOULD_USE_PRESIGN: false,
TELEGRAM_BOT: process.env.TELEGRAM_BOT,
TELEGRAM_CHAT: process.env.TELEGRAM_CHAT
}
})
);