-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
43 lines (41 loc) · 1.02 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack5: true, // by default, if you customize webpack config, they switch back to version 4.
// Looks like backward compatibility approach.
webpack(config) {
config.module.rules.push({
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader',
});
config.resolve.fallback = {
...config.resolve.fallback, // if you miss it, all the other options in fallback, specified
// by next.js will be dropped. Doesn't make much sense, but how it is
fs: false, // the solution
};
return config;
},
trailingSlash: true,
eslint: {
ignoreDuringBuilds: true,
},
// images: {
// loader: "akamai",
// path: "",
// },
// images: {
// loader: "akamai",
// path: "/",
// },
// images: {
// loader: "imgix",
// path: "/",
// },
// experimental: {
// images: {
// unoptimized: true,
// },
// },
};
module.exports = nextConfig;