-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
executable file
·52 lines (51 loc) · 1.3 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
/* 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
}
];
},
env: {
PROJECT_SLUG: 'build_by_mom',
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
10: process.env.RPC_URL_OPTIMISM,
137: process.env.RPC_URL_POLYGON,
250: process.env.RPC_URL_FANTOM,
1337: 'http://localhost:8080',
42161: process.env.RPC_URL_ARBITRUM
},
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'
}
});