Skip to content

Commit

Permalink
Bilder kraschar inte längre
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatanhx committed Jun 6, 2024
1 parent aa1229f commit c0ca6da
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/categories/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ export default async function CategoryPage({ params }: CategoryPageProps) {
}}
>
<Image
width={100}
height={100}
src={MiddleImage}
alt="Stor Bild"
layout="fill"
objectFit="cover"
/>
</Box>
Expand Down
4 changes: 3 additions & 1 deletion app/checkout/components/CartItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export const CartItems = ({ cart }: ItemsProps) => {
<Image
src={item.image}
alt="Produktbild"
style={{ width: "100%", borderRadius: "8px" }}
style={{ borderRadius: "8px" }}
width={100}
height={100}
/>
</Box>
)}
Expand Down
11 changes: 9 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export default async function HomePage() {
>
<Image
src={MiddleImage}
width={100}
height={100}
alt="Stor Bild"
layout="fill"
objectFit="cover"
/>
</Box>
Expand Down Expand Up @@ -99,7 +100,13 @@ export default async function HomePage() {
marginBottom: "24px",
}}
>
<Image src={Car} alt="Stor Bild" layout="fill" objectFit="cover" />
<Image
src={Car}
alt="Stor Bild"
objectFit="cover"
width={100}
height={100}
/>
</Box>
{/* Kort som leder till kategorierna */}
<CardsHeader />
Expand Down
9 changes: 9 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ const nextConfig = {
experimental: {
typedRoutes: true,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
};


export default nextConfig;

0 comments on commit c0ca6da

Please sign in to comment.