-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
24 lines (23 loc) · 765 Bytes
/
next.config.js
File metadata and controls
24 lines (23 loc) · 765 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
// next.config.js
const { withPlugins, optional } = require("next-compose-plugins");
const optimizedImages = require("next-optimized-images");
const { PHASE_PRODUCTION_BUILD, PHASE_PRODUCTION_SERVER, PHASE_DEVELOPMENT_SERVER, PHASE_EXPORT } = require("next/constants");
module.exports = withPlugins([
[
optimizedImages,
{
handleImages: ["jpeg", "jpg", "png", "svg", "webp", "gif", "ico"],
optimizeImagesInDev: true,
defaultImageLoader: "responsive-loader",
responsive: {
sizes: [320, 600, 920, 1240],
placeholder: false,
placeholderSize: 80,
adapter: require("responsive-loader/sharp"),
},
pngquant: true,
},
],
[require("next-plugin-preact")],
// your other plugins here
]);