-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.js
More file actions
54 lines (49 loc) · 1.45 KB
/
next.config.js
File metadata and controls
54 lines (49 loc) · 1.45 KB
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
47
48
49
50
51
52
53
54
// @ts-check
/**
* @type {import('next').NextConfig}
**/
const { withContentlayer } = require('next-contentlayer');
const nextConfig = {
transpilePackages: ['next-image-export-optimizer'],
env: {
nextImageExportOptimizer_imageFolderPath: 'public/images',
nextImageExportOptimizer_exportFolderPath: 'out',
nextImageExportOptimizer_quality: 75,
nextImageExportOptimizer_storePicturesInWEBP: true,
nextImageExportOptimizer_exportFolderName: 'nextImageExportOptimizer',
// If you do not want to use blurry placeholder images, then you can set
// nextImageExportOptimizer_generateAndUseBlurImages to false and pass
// `placeholder="empty"` to all <ExportedImage> components.
nextImageExportOptimizer_generateAndUseBlurImages: true,
},
images: {
loader: 'custom',
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
remotePatterns: [
{
protocol: 'https',
hostname: 'miro.medium.com',
},
{
protocol: 'https',
hostname: '**.netlify.app',
},
{
protocol: 'https',
hostname: 'youtu.be',
},
{
protocol: 'https',
hostname: '**.youtube.com',
},
{
protocol: 'https',
hostname: 'aim-netlify-image.s3.amazonaws.com',
port: '',
// pathname: '/account123/**',
},
],
},
};
module.exports = withContentlayer(nextConfig);