From c9ae185fdf57e6357c4ebd42e5ba4c60c0aa0e01 Mon Sep 17 00:00:00 2001 From: DanielS Date: Thu, 25 Jun 2026 23:46:03 +0200 Subject: [PATCH] Fix Supabase URL for staging environment and update admin recent orders polling --- shop/components/admin/recent-orders.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shop/components/admin/recent-orders.tsx b/shop/components/admin/recent-orders.tsx index 74ddabe..75e1bd6 100644 --- a/shop/components/admin/recent-orders.tsx +++ b/shop/components/admin/recent-orders.tsx @@ -42,8 +42,7 @@ export function AdminRecentOrders() { const fetchOrders = async () => { try { - const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:3000'; - const res = await fetch(`${baseUrl}/api/admin/recent-orders`, { cache: 'no-store' }); + const res = await fetch('/api/admin/recent-orders', { cache: 'no-store' }); if (!res.ok) return const { orders: fresh, chartData: freshChart } = await res.json()