-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
executable file
·43 lines (41 loc) · 1.32 KB
/
next.config.mjs
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// fixes wallet connect dependency issue https://docs.walletconnect.com/web3modal/nextjs/about#extra-configuration
webpack: (config) => {
config.externals.push("pino-pretty", "lokijs", "encoding");
config.module.rules.push({
test: /\.pdf$/,
use: [
{
loader: 'file-loader',
options: {
publicPath: './_next/static/files/',
outputPath: 'static/files/',
name: '[name].[hash].[ext]',
},
},
],
});
return config;
},
images: {
loader: "custom",
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
},
transpilePackages: ["next-image-export-optimizer"],
env: {
nextImageExportOptimizer_imageFolderPath: "dist/public/images",
nextImageExportOptimizer_exportFolderPath: "dist/out",
nextImageExportOptimizer_quality: "75",
nextImageExportOptimizer_storePicturesInWEBP: "true",
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
nextImageExportOptimizer_generateAndUseBlurImages: "true",
nextImageExportOptimizer_remoteImageCacheTTL: "0",
},
basePath:'',
output: "export",
reactStrictMode: true,
distDir:'dist'
};
export default nextConfig;