diff options
Diffstat (limited to 'packages/astro/templates/actions.mjs')
-rw-r--r-- | packages/astro/templates/actions.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/templates/actions.mjs b/packages/astro/templates/actions.mjs index b83cc4a39..0aa22f508 100644 --- a/packages/astro/templates/actions.mjs +++ b/packages/astro/templates/actions.mjs @@ -92,7 +92,7 @@ async function handleAction(param, path, context) { headers.set('Content-Length', '0'); } } - const rawResult = await fetch(`/_actions/${path}`, { + const rawResult = await fetch(`${import.meta.env.BASE_URL.replace(/\/$/, '')}/_actions/${path}`, { method: 'POST', body, headers, |