fix: Use native img tags for admin pages

- Replace next/image with native img tags in admin bottles, splits, tastings
- Remove hardcoded Supabase hostname from next.config.mjs
- Native img works with any hostname without config changes on deploy
This commit is contained in:
2026-01-19 11:46:26 +01:00
parent 3c02d33531
commit 948c70c7f2
4 changed files with 11 additions and 29 deletions

View File

@@ -2,7 +2,6 @@
import { useState, useMemo } from 'react';
import { Search, User, Star, Wine, MessageSquare } from 'lucide-react';
import Image from 'next/image';
interface Tasting {
id: string;
@@ -139,11 +138,9 @@ export default function AdminTastingsList({ tastings }: AdminTastingsListProps)
{/* Bottle Image */}
<div className="w-16 h-16 rounded-xl overflow-hidden bg-zinc-800 flex-shrink-0">
{tasting.bottle?.image_url ? (
<Image
<img
src={tasting.bottle.image_url}
alt={tasting.bottle.name || 'Bottle'}
width={64}
height={64}
className="w-full h-full object-cover"
/>
) : (