19 lines
548 B
JavaScript
19 lines
548 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
// Only generate these widths — fewer variants = less processing
|
|
deviceSizes: [640, 1080, 1920],
|
|
imageSizes: [256, 512],
|
|
// Cache optimised images for 30 days
|
|
minimumCacheTTL: 60 * 60 * 24 * 30,
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "images.unsplash.com" },
|
|
{ protocol: "https", hostname: "plus.unsplash.com" },
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|