-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
34 lines (29 loc) · 886 Bytes
/
next.config.js
File metadata and controls
34 lines (29 loc) · 886 Bytes
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
const withOptimizedImages = require('next-optimized-images');
const withPlugins = require('next-compose-plugins');
module.exports = {
images: {
domains: ['cdn.sanity.io', 'i.imgur.com', 'https://i.imgur.com'],
},
// target: 'serverless'
}
// module.exports = withOptimizedImages([
// [withOptimizedImages, {
// // these are the default values so you don't have to provide them if they are good enough for your use-case.
// // but you can overwrite them here with any valid value you want.
// mozjpeg: {
// quality: 80,
// },
// optimizeImagesInDev: true,
// optimizeImages: true,
// gifsicle: {
// interlaced: true,
// // optimizationLevel: 3,
// },
// svgo: {
// plugins: [
// { removeComments: false }
// ]
// },
// handleImages: ['jpeg', 'png', 'svg', 'webp', 'gif'],
// }],
// ]);