diff --git a/packages/storefront/src/lib/ssr-context.ts b/packages/storefront/src/lib/ssr-context.ts index 06ce7d741..d08756b64 100644 --- a/packages/storefront/src/lib/ssr-context.ts +++ b/packages/storefront/src/lib/ssr-context.ts @@ -90,7 +90,7 @@ const loadPageContext = async (Astro: AstroGlobal, { } else { console.error(error); setResponseCache(Astro, 30); - Astro.response.headers.set('X-SSR-Error', error.stack); + Astro.response.headers.set('X-SSR-Error', error.message); } Astro.response.status = status; err.responseHTML = `