-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext.config.js
46 lines (39 loc) · 973 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
34
35
36
37
38
39
40
41
42
43
44
45
46
const withPlugins = require("next-compose-plugins");
const optimizedImages = require("next-optimized-images");
const nextConfig = {};
module.exports = withPlugins([optimizedImages], nextConfig);
module.exports = {
webpack5: true,
webpack: (config) => {
config.resolve.fallback = {
fs: false,
path: false
};
return config;
},
};
// const withOptimizedImages = require('next-optimized-images');
// module.exports = withOptimizedImages({
// /* config for next-optimized-images */
// // your config for other plugins or the general next.js here...
// /**
// * OPTION B:
// * Chained with your own url-loader or file-loader
// **/
// test: /\.(png|jpe?g)$/,
// loaders: [
// {
// loader: 'lqip-loader',
// options: {
// base64: true,
// palette: false
// }
// },
// {
// loader: 'url-loader',
// options: {
// limit: 8000
// }
// }
// ]
// });