-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
32 lines (29 loc) · 987 Bytes
/
next.config.js
File metadata and controls
32 lines (29 loc) · 987 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
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
output: 'export',
distDir: 'out',
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '',
/*images: {
unoptimized: true,
},*/
images: {
loader: 'custom',
imageSizes: [128, 256, 384],
deviceSizes: [480, 640, 750, 828, 1080],
},
transpilePackages: ['next-image-export-optimizer'],
env: {
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',
},
};
module.exports = nextConfig;