Skip to content

Commit

Permalink
Merge pull request #222 from Actualiza-Tu-Carro/fixBugs
Browse files Browse the repository at this point in the history
Todos los elementos del menuMobile se abrían en otra pestaña
  • Loading branch information
JohanMejia77 authored Nov 10, 2023
2 parents 04532b0 + 6a198f4 commit bf66ff0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 13 deletions.
52 changes: 40 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: [
'i.ebayimg.com',
'i.postimg.cc',
'1000marcas.net',
'www.autopista.es',
'assets.stickpng.com',
'media.gm.com',
'cdn-icons-png.flaticon.com',
'user-images.githubusercontent.com',
'postlmg.cc/7GxXNxBz',
], // Agrega aquí los dominios permitidos para las imágenes
remotePatterns: [
{
protocol: 'https',
hostname: 'i.ebayimg.com',
},
{
protocol: 'https',
hostname: 'i.postimg.cc',
},
{
protocol: 'https',
hostname: '1000marcas.net',
},
{
protocol: 'https',
hostname: 'www.autopista.es',
},
{
protocol: 'https',
hostname: 'assets.stickpng.com',
},
{
protocol: 'https',
hostname: 'media.gm.com',
},
{
protocol: 'https',
hostname: 'cdn-icons-png.flaticon.com',
},
{
protocol: 'https',
hostname: 'user-images.githubusercontent.com',
},
{
protocol: 'https',
hostname: 'postlmg.cc',
},
// Agrega otras configuraciones de dominio según sea necesario
],
},
};

module.exports = nextConfig;
module.exports = nextConfig;
2 changes: 1 addition & 1 deletion src/components/navBar/MenuMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MenuMobile: FC<MenuMobileProps> = ({ updateState }) => {
key={item.url}
href={item.url}
className="block p-4 transform hover:scale-125"
target='_blank'
target={item.url === 'https://actualizatucarro.blogspot.com' ? '_blank' : '_self'}
>
{item.label}
</Link>
Expand Down

0 comments on commit bf66ff0

Please sign in to comment.