Skip to content

Commit

Permalink
[node-headless-ssr-proxy] Add sc_site qs parameter to Layout Service …
Browse files Browse the repository at this point in the history
…requests
  • Loading branch information
illiakovalenko committed Nov 13, 2023
1 parent 1385bba commit 1ce3a12
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const config: ProxyConfig = {
setHeaders: (_req, _serverRes, proxyRes) => {
delete proxyRes.headers['content-security-policy'];
},
/**
* Query string parameters to add to Layout Service requests.
*/
qsParams: `sc_site=${siteName}`,
/**
* Custom error handling in case our app fails to render.
* Return null to pass through server response, or { content, statusCode }
Expand Down

0 comments on commit 1ce3a12

Please sign in to comment.