/** @type {import('next').NextConfig} */
const nextConfig = {
	reactStrictMode: true,
	 eslint: {
    ignoreDuringBuilds: true,
  },
     images: {
          formats: ['image/webp', 'image/avif'],
          remotePatterns: [
               {
                    protocol: 'https',
                    hostname: 's13emagst.akamaized.net',
                    pathname: '**',
               },
               {
                    protocol: 'https', 
                    hostname: 'export.avex.ro',
                    pathname: '**', 
               },
                {
                    protocol: 'https', 
                    hostname: 'tpc.googlesyndication.com',
                    pathname: '**', 
               },
               {
                    protocol: 'https', 
                    hostname: 'd372xxb7fb1cod.cloudfront.net', 
                    pathname: '**', 
               }
          ],
          unoptimized: true, 
     },
     serverRuntimeConfig: {
		/*dbConfig: {
			host: "localhost",
			port: 3306,
			user: "root",
			password: "",
			database: "emagyl",
		},*/
         dbConfig:{
               host: "localhost",
               port: 3306, 
               user: "rahreivee_dennis",
               password: "21314469spdj4ueD@",
               database: "rahreivee_emagyl"
          },
		secret: "0a2ae24a812ed6a41f4ac9ebe8e575b1de625abf0606ea61d583576eec2f1825",
	},
     publicRuntimeConfig: {
		apiUrl:
			process.env.NODE_ENV === "development"
				? "https://emagyl.ro/app/api"
				: "https://emagyl.ro/app/api",
	},
	productionBrowserSourceMaps: true,
};

module.exports = nextConfig; 