From 9aa32cac83d59e00e73c1794716c2ad08993a39a Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 03:00:11 +0000 Subject: [PATCH] Fix both /api/storage/ensure-buckets in Dashboard.tsx cgen-f5ce3bc0c49e4520b394d727263b306b --- client/pages/Dashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 5d951740..ee0fb3b9 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -1132,7 +1132,7 @@ export default function Dashboard() { onChange={async (e) => { const ensureBuckets = async () => { try { - await fetch("/api/storage/ensure-buckets", { + await fetch(`${API_BASE}/api/storage/ensure-buckets`, { method: "POST", }); } catch {} @@ -1210,7 +1210,7 @@ export default function Dashboard() { onChange={async (e) => { const ensureBuckets = async () => { try { - await fetch("/api/storage/ensure-buckets", { + await fetch(`${API_BASE}/api/storage/ensure-buckets`, { method: "POST", }); } catch {}