From f7c064c64c2bba36d037686f602372b30f1c0e45 Mon Sep 17 00:00:00 2001 From: artale Date: Thu, 4 Jun 2026 14:01:47 +0200 Subject: [PATCH] fix: checkout API accessible via domain --- site/checkout.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/checkout.md b/site/checkout.md index b1b7516..b07f0ea 100644 --- a/site/checkout.md +++ b/site/checkout.md @@ -31,7 +31,9 @@ onMounted(async () => { document.getElementById('status').textContent = `Creating checkout session for ${price.name}...` try { - const resp = await fetch('/api/checkout', { + // Try domain URL first, fall back to direct IP + const apiUrl = 'https://git.fdsa.agency/api' + const resp = await fetch(apiUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({