import type { NextConfig } from "next"; function getSupabaseHostname(): string { const url = process.env.NEXT_PUBLIC_SUPABASE_URL; if (url) { try { return new URL(url).hostname; } catch { /* fall through */ } } return "*.supabase.co"; } const nextConfig: NextConfig = { allowedDevOrigins: ["192.168.1.92"], images: { remotePatterns: [ { protocol: "https", hostname: getSupabaseHostname() }, ], }, }; export default nextConfig;