From 1be512f65807d40bda12ea161ce084a9604afb5a Mon Sep 17 00:00:00 2001 From: Nicholai Date: Wed, 8 Oct 2025 19:13:10 -0600 Subject: [PATCH] fix: revert Next.js Image component for Cloudflare Workers compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 Bug Fix: The Next.js component requires Node.js APIs that aren't available in Cloudflare Workers runtime, causing 'Image constructor: new is required' errors. Changes: - Revert hero-section.tsx to use background-image CSS - Revert artists-section.tsx to use native tags - Add loading='lazy' attributes for native lazy loading - Keep images.unoptimized: true in next.config.mjs - Add clear comment explaining Cloudflare compatibility requirement ✅ What's Still Working: - All SEO improvements (metadata, Open Graph, Twitter Cards) - JSON-LD structured data (LocalBusiness, Organization) - Canonical URLs on all pages - Font preloading - Page-specific metadata Note: Native tags with loading='lazy' provide basic optimization without requiring Next.js Image APIs. For Cloudflare R2 image optimization, consider using Cloudflare Images service separately. Issue: #GH-419 (React error) Platform: Cloudflare Workers --- components/artists-section.tsx | 16 ++++++---------- components/hero-section.tsx | 20 ++++++-------------- next.config.mjs | 15 +++------------ 3 files changed, 15 insertions(+), 36 deletions(-) diff --git a/components/artists-section.tsx b/components/artists-section.tsx index e416f56a8..d5e220765 100644 --- a/components/artists-section.tsx +++ b/components/artists-section.tsx @@ -108,24 +108,20 @@ export function ArtistsSection() {
{/* Imagery */}
- {`${artist.name} -
+
{/* Portrait with feathered mask */} -
- + - -
+ /> {/* Midground Layer - Overlay with subtle parallax */}