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

module.exports = nextConfig; 