44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
|
/** @type {import('next').NextConfig} */
|
||
|
|
||
|
//import optimizedImages from 'next-optimized-images'
|
||
|
//const withOptimizedImages = require('next-optimized-images')
|
||
|
|
||
|
const config = {
|
||
|
reactStrictMode: true,
|
||
|
async headers() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/',
|
||
|
headers: [
|
||
|
{
|
||
|
key: 'Cache-Control',
|
||
|
value: 'public, max-age=31536000, must-revalidate',
|
||
|
},
|
||
|
{
|
||
|
key: 'CDN-Cache-Control',
|
||
|
value: 'max-age=31536000',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
images: {
|
||
|
// domains: ['res.cloudinary.com'], // cloudinary
|
||
|
remotePatterns: [
|
||
|
{ hostname: 'cdn.sanity.io' }, // sanity
|
||
|
{ hostname: 'cmswp.gwkbali.com' }, // wordpress
|
||
|
],
|
||
|
},
|
||
|
typescript: {
|
||
|
// Set this to false if you want production builds to abort if there's type errors
|
||
|
ignoreBuildErrors: process.env.VERCEL_ENV === 'production',
|
||
|
},
|
||
|
eslint: {
|
||
|
/// Set this to false if you want production builds to abort if there's lint errors
|
||
|
ignoreDuringBuilds: process.env.VERCEL_ENV === 'production',
|
||
|
// ignoreDuringBuilds: true,
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export default config
|