-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
63 lines (57 loc) · 1.75 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
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
env: {
REACT_APP_DEFAULT_CHAINID: process.env.REACT_APP_DEFAULT_CHAINID,
REACT_APP_VERSION: process.env.REACT_APP_VERSION,
REACT_APP_INFURA_KEY_V1: process.env.REACT_APP_INFURA_KEY_V1,
REACT_APP_RPC_URL_1: process.env.TENDERLY_JSON_RPC_URL,
REACT_APP_RPC_URL_42161: process.env.REACT_APP_RPC_URL_42161,
REACT_APP_DEFAULT_FORK_RPC_URL: process.env.REACT_APP_DEFAULT_FORK_RPC_URL,
REACT_APP_LOCALHOST_RPC_URL: process.env.REACT_APP_LOCALHOST_RPC_URL,
INFURA_KEY: process.env.INFURA_KEY,
ALCHEMY_ARBITRUM_KEY: process.env.ALCHEMY_ARBITRUM_KEY,
ALCHEMY_MAINNET_KEY: process.env.ALCHEMY_MAINNET_KEY,
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID,
ENV: process.env.NODE_ENV,
TENDERLY_USER: process.env.TENDERLY_USER,
TENDERLY_PROJECT: process.env.TENDERLY_PROJECT,
TENDERLY_ACCESS_KEY: process.env.TENDERLY_ACCESS_KEY,
ALLOWED_SUPPORT_ADDRESSES: process.env.ALLOWED_SUPPORT_ADDRESSES,
KILLSWITCH_ACTIVE: process.env.KILLSWITCH_ACTIVE,
KILLSWITCH_TEXT: process.env.KILLSWITCH_TEXT,
KILLSWITCH_CHAIN: process.env.KILLSWITCH_CHAIN,
},
async redirects() {
return [
{
source: '/',
destination: '/borrow',
permanent: true,
},
];
},
compiler: {
styledComponents: true,
},
images: {
domains: ['metadata.ens.domains'],
},
async headers() {
return [
{
// Sets security headers for all routes
source: '/(.*)',
headers: [
{
key: 'X-FRAME-OPTIONS',
value:
"DENY",
}
],
},
];
},
};
module.exports = nextConfig;