41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
|
/** @type {import('next').NextConfig} */
|
||
|
const nextConfig = {
|
||
|
reactStrictMode: false,
|
||
|
output: 'export',
|
||
|
images: {
|
||
|
// unoptimized: true,
|
||
|
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: "public/images",
|
||
|
nextImageExportOptimizer_exportFolderPath: "out",
|
||
|
nextImageExportOptimizer_quality: "75",
|
||
|
nextImageExportOptimizer_storePicturesInWEBP: "true",
|
||
|
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
|
||
|
nextImageExportOptimizer_generateAndUseBlurImages: "true",
|
||
|
nextImageExportOptimizer_remoteImageCacheTTL: "0",
|
||
|
},
|
||
|
async redirects() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/:path*.txt',
|
||
|
destination: '/404', // or any other path
|
||
|
permanent: false,
|
||
|
},
|
||
|
];
|
||
|
},
|
||
|
}
|
||
|
|
||
|
const withPWA = require('next-pwa')({
|
||
|
dest: 'public',
|
||
|
register: true,
|
||
|
skipWaiting: true,
|
||
|
});
|
||
|
|
||
|
module.exports = withPWA(nextConfig);
|
||
|
|
||
|
|