import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
  reactStrictMode: process.env.NEXT_PUBLIC_API_URL !== "http://localhost:8000",
  images: {
    remotePatterns: [
      new URL("https://picsum.photos/seed/**"),
      new URL("https://tailwindcss.com/plus-assets/img/ecommerce-images/**"),
      new URL("https://www.gstatic.com/recaptcha/api2/**"),
      new URL(`${process.env.NEXT_PUBLIC_API_URL}/storage/exams/images/**`),
    ],
  },
};

export default nextConfig;
