-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
62 lines (58 loc) · 1.57 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// const withBundleAnalyzer = require("@next/bundle-analyzer")({
// enabled: process.env.ANALYZE === "true",
// });
// withBundleAnalyzer(
// @ts-check
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
eslint: {
dirs: ["src/app", "src/common", "src/modules", "src/pages", "src/utils/index.ts"],
},
extends: ["plugin:@next/next/recommended"],
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
images: {
// limit of 25 deviceSizes values
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// limit of 25 imageSizes values
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
// limit of 50 domains values
domains: [
"ipfs.io",
"ipfs.fleek.co",
"storage.fleek.co",
"storageapi.fleek.co",
"arweave.net",
"gateway.pinata.cloud",
"ipfs.dweb.link",
"images.mirror-media.xyz",
"media.giphy.com",
"zora-dev.mypinata.cloud",
],
path: "/_next/image",
// loader can be 'default', 'imgix', 'cloudinary', 'akamai', or 'custom'
loader: "default",
// disable static imports for image files
disableStaticImages: false,
// minimumCacheTTL is in seconds, must be integer 0 or more
minimumCacheTTL: 604800, // 1 week
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
fallback: {
fs: false,
},
};
// );
module.exports = nextConfig;