-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
29 lines (28 loc) · 1.08 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
/* eslint-disable import/no-extraneous-dependencies */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const { i18n } = require('./next-i18next.config');
module.exports = withBundleAnalyzer({
poweredByHeader: false,
trailingSlash: true,
basePath: '',
// The starter code load resources from `public` folder with `router.basePath` in React components.
// So, the source code is "basePath-ready".
// You can remove `basePath` if you don't need it.
reactStrictMode: true,
images: {
format: ['image/webp'],
domains: [
'images.prismic.io',
'main-maisonfabiencarrichon.cdn.prismic.io',
'scontent.cdninstagram.com',
],
// next/image support `srcSet` using the below deviceSizes
// for more info, visit https://nextjs.org/docs/basic-features/image-optimization#device-sizes
deviceSizes: [320, 480, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// https://nextjs.org/docs/basic-features/image-optimization#image-sizes
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
i18n,
});