generated from BuiltByMom/LookMom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
executable file
·109 lines (107 loc) · 3.54 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* 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: {
remotePatterns: [
{
protocol: 'https',
hostname: 'rawcdn.githack.com'
},
{
protocol: 'https',
hostname: 'raw.githubusercontent.com'
},
{
protocol: 'https',
hostname: 'assets.smold.app'
}
]
},
redirects() {
return [
{
source: '/github',
destination: 'https://github.com/BuiltByMom/LookMom',
permanent: true
}
];
},
async rewrites() {
return [
{
source: '/js/script.js',
destination: 'https://plausible.io/js/script.js'
},
{
source: '/api/event',
destination: 'https://plausible.io/api/event'
}
];
},
env: {
PROJECT_SLUG: 'build_by_mom',
RPC_URI_FOR: {
/**********************************************************************************
** New RPC Setup for mainnet networks
*********************************************************************************/
1: process.env.RPC_URI_FOR_1,
10: process.env.RPC_URI_FOR_10,
56: process.env.RPC_URL_BINANCE,
100: process.env.RPC_URI_FOR_100,
137: process.env.RPC_URI_FOR_137,
250: process.env.RPC_URI_FOR_250,
252: process.env.RPC_URI_FOR_252,
288: process.env.RPC_URI_FOR_288,
8453: process.env.RPC_URI_FOR_8453,
42161: process.env.RPC_URI_FOR_42161,
42170: process.env.RPC_URI_FOR_42170,
56288: process.env.RPC_URI_FOR_56288,
81457: process.env.RPC_URI_FOR_81457,
111188: process.env.RPC_URI_FOR_111188,
/**********************************************************************************
** New RPC Setup for testnet networks
*********************************************************************************/
97: process.env.RPC_URL_BINANCE_TESTNET,
400: process.env.RPC_URL_OPTIMISM_GOERLI,
2522: process.env.RPC_URI_FOR_2522,
9728: process.env.RPC_URI_FOR_9728,
17000: process.env.RPC_URI_FOR_17000,
18233: process.env.RPC_URI_FOR_18233,
28882: process.env.RPC_URI_FOR_28882,
80001: process.env.RPC_URI_FOR_80001,
84532: process.env.RPC_URI_FOR_84532,
421614: process.env.RPC_URI_FOR_421614,
11155111: process.env.RPC_URI_FOR_11155111,
11155420: process.env.RPC_URI_FOR_11155420
},
/**********************************************************************************
** Legacy RPC configuration, mainnet and testnet
*********************************************************************************/
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
10: process.env.RPC_URL_OPTIMISM,
56: process.env.RPC_URL_BINANCE,
97: process.env.RPC_URL_BINANCE_TESTNET,
137: process.env.RPC_URL_POLYGON,
250: process.env.RPC_URL_FANTOM,
420: process.env.RPC_URL_OPTIMISM_GOERLI,
8453: process.env.RPC_URL_BASE,
80001: process.env.RPC_URL_POLYGON_TESTNET,
42161: process.env.RPC_URL_ARBITRUM,
11155111: process.env.RPC_URL_SEPOLIA
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY,
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID,
YDAEMON_BASE_URI: process.env.YDAEMON_BASE_URI,
SMOL_ASSETS_URL: 'https://assets.smold.app/api',
DEFAULT_CHAIN_ID: 1,
ZAP_ADDRESS: '0x37F350DC357222E823620d473d0289C12e1AcCDC'
}
});