import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Image optimization configuration images: { remotePatterns: [ { protocol: "https", hostname: "lh3.googleusercontent.com", }, { protocol: "https", hostname: "avatars.githubusercontent.com", }, { protocol: "https", hostname: "*.public.blob.vercel-storage.com", }, ], }, // Enable compression compress: true, // Security headers async headers() { return [ { source: "/(.*)", headers: [ { key: "X-Frame-Options", value: "DENY", }, { key: "X-Content-Type-Options", value: "nosniff", }, { key: "Referrer-Policy", value: "strict-origin-when-cross-origin", }, { key: "X-XSS-Protection", value: "1; mode=block", }, { key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()", }, ], }, ]; }, }; export default nextConfig;