// /** @type {import('next').NextConfig} */
// const nextConfig = {
// //  output: 'export', // enables static HTML export
//   images: {
//     remotePatterns: [
//       {
//         protocol: 'https',
//         hostname: 'sadu.reownlogics.com',
//         port: '',
//         pathname: '/storage/**',
//       },
//     ],
//   },
// };

// module.exports = nextConfig;
/** @type {import('next').NextConfig} */
const nextConfig = {
  // output: 'export', // enables static HTML export (only if you really need SSG)
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'sadu.reownlogics.com',
        port: '',
        pathname: '/storage/**',
      },
      {
        protocol: 'https',
        hostname: 'admin.sadu-re.sa',
        port: '',
        pathname: '/storage/**',
      },
    ],
  },

   i18n: {
    locales: ["en", "ar"], // available languages
    defaultLocale: "en",   // default language
    localeDetection: true, // auto-detect from browser
  },
  
};

module.exports = nextConfig;
