-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
46 lines (45 loc) · 1.04 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
const withPWA = require('next-pwa');
const nextConfig = {
assetPrefix: './',
trailingSlash: true,
reactStrictMode: true,
pwa: {
dest: 'public',
},
devIndicators: {
autoPrerender: true,
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
webpackDevMiddleware: (config) => {
// Solve compiling problem via vagrant
config.watchOptions = {
poll: 1000, // Check for changes every second
aggregateTimeout: 800, // delay before rebuilding
};
return config;
},
async rewrites() {
return [];
},
images: {
domains: [
'ipfs.io',
'rarible.mypinata.cloud',
'akkoros.mypinata.cloud',
'ipfs.akkoros.xyz',
],
},
env: {
NFT_STORAGE_KEY: process.env.NFT_STORAGE_KEY,
ETHERSCAN_API: process.env.ETHERSCAN_API,
DEV: process.env.DEV,
AKKORO_ENV: process.env.AKKORO_ENV,
},
};
module.exports = withPWA(nextConfig);