-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
47 lines (45 loc) · 1.16 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
/** @type {import('next').NextConfig} */
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
runtimeCaching,
});
const nextConfig = withPWA({
reactStrictMode: true,
env: {
NEXT_PUBLIC_INFURA_IPFS_API_KEY:
process.env.NEXT_PUBLIC_INFURA_IPFS_API_KEY,
NEXT_PUBLIC_INFURA_IPFS_API_SECRET:
process.env.NEXT_PUBLIC_INFURA_IPFS_API_SECRET,
NEXT_PUBLIC_MIXPANEL_PROJECT_KEY:
process.env.NEXT_PUBLIC_MIXPANEL_PROJECT_KEY,
NEXT_PUBLIC_MIXPANEL_HOST: process.env.NEXT_PUBLIC_MIXPANEL_HOST,
NEXT_PUBLIC_DEFIOS_SERVER: process.env.NEXT_PUBLIC_DEFIOS_SERVER,
},
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
});
module.exports = nextConfig;
module.exports = {
images: {
domains: [
'avatars.githubusercontent.com',
'raw.githubusercontent.com',
'foresight.org',
'gateway.pinata.cloud',
'ipfs.io',
'fuchsia-evolutionary-marlin-251.mypinata.cloud',
],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
};