forked from konstructio/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (32 loc) · 964 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
33
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
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;",
remotePatterns: [],
unoptimized: false,
},
compiler: {
styledComponents: true,
},
experimental: {
fontLoaders: [{ loader: '@next/font/google', options: { display: 'auto' } }],
},
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,
},
};
module.exports = nextConfig;