Fix both /api/storage/ensure-buckets in Dashboard.tsx

cgen-f5ce3bc0c49e4520b394d727263b306b
This commit is contained in:
Builder.io 2025-11-13 03:00:11 +00:00
parent 747f4f4708
commit 9aa32cac83

View file

@ -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 {}