/** @type {import('next').NextConfig} */ const nextConfig = { output: "export", reactStrictMode: false, trailingSlash: true, images: { unoptimized: true, // ⬅ required for static export to work with next/image domains: ['your-cdn.com', 'images.unsplash.com'], // allow external domains }, async headers() { return [ { source: '/(.*)', headers: [ { key: 'Cache-Control', value: 'no-store, no-cache, must-revalidate, proxy-revalidate', }, ], }, ]; }, }; module.exports = nextConfig;