-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
32 lines (29 loc) · 859 Bytes
/
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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
});
/**
* @type {import('next').NextConfig}
**/
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
// TODO: Remove this when figured out.
typescript: {
ignoreBuildErrors: true
},
env: {
DOMAIN: process.env.DOMAIN,
SHOWBANNER: process.env.SHOWBANNER
},
images: {
remotePatterns: [
{ hostname: 'https', hostname: 'avatars.githubusercontent.com' },
{ hostname: 'https', hostname: 'cdn.sanity.io' },
{ hostname: 'https', hostname: 'source.unsplash.com' },
{ hostname: 'https', hostname: 'images.unsplash.com' },
{ hostname: 'https', hostname: 'i.scdn.co' }
]
}
};
module.exports = withBundleAnalyzer(nextConfig);