import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  // Allow Cloudflare quick tunnels / other local public URLs to load Next.js
  // dev assets (fonts, HMR) while previewing over a public URL.
  allowedDevOrigins: ["*.trycloudflare.com", "*.loca.lt", "localhost"],
  images: {
    formats: ["image/avif", "image/webp"],
    remotePatterns: [
      {
        protocol: "https",
        hostname: "images.unsplash.com",
      },
    ],
  },
};

export default nextConfig;
