-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
31 lines (28 loc) · 1001 Bytes
/
Copy pathnext.config.ts
File metadata and controls
31 lines (28 loc) · 1001 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
import type { NextConfig } from "next";
import path from 'path';
const nextConfig: NextConfig = {
output: "export", // <=== enables static exports
reactStrictMode: true,
turbopack: {
// We set the root to the parent directory to match Next.js' inferred workspace root
root: path.resolve(__dirname, '..'),
},
// configuration for image export optimizer
images: {
loader: "custom",
imageSizes: [],
deviceSizes: [750, 1200, 1920],
},
transpilePackages: ["next-image-export-optimizer"],
env: {
nextImageExportOptimizer_imageFolderPath: "public",
nextImageExportOptimizer_exportFolderPath: "out",
nextImageExportOptimizer_quality: "80",
nextImageExportOptimizer_storePicturesInWEBP: "true",
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
nextImageExportOptimizer_generateAndUseBlurImages: "true",
nextImageExportOptimizer_remoteImageCacheTTL: "0",
},
};
module.exports = nextConfig;
export default nextConfig;