Skip to content

Commit

Permalink
fix(storefront): Send X-SSR-Error with error message only
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Sep 10, 2022
1 parent c55f201 commit 7fafde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storefront/src/lib/ssr-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<html><head>
Expand Down

0 comments on commit 7fafde1

Please sign in to comment.