generated from kubefirst/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
next.config.js
45 lines (43 loc) · 1.15 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
const { join } = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
webpack: (config, { isServer }) => {
config.resolve.alias['@'] = join(__dirname);
return config;
},
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
path: '/_next/image',
loader: 'default',
loaderFile: '',
domains: [],
disableStaticImages: false,
minimumCacheTTL: 60,
formats: ['image/webp'],
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
compiler: {
styledComponents: true,
},
typescript: {
// nextjs doees not read the tsconfig.json properly and it's triggering different errors that we can't see using `yarn check-types`
ignoreBuildErrors: true,
},
eslint: {
// eslint will be executed before we run build
ignoreDuringBuilds: true,
}
};
module.exports = nextConfig;