Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix(prodsample): configureRequestLog had faulty example code (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Mallimo authored Jan 11, 2022
1 parent 3cce72e commit 9d62c6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
eventLoopDelayThreshold: Infinity,
csp,
corsOrigins: [/\.example.com$/],
configureRequestLog: ({ req, log = {} }) => {
configureRequestLog: ({ req, log = { request: { metaData: {} } } }) => {
const clonedLog = JSON.parse(JSON.stringify(log));
const { cookies } = req;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
'macadamia',
],
},
configureRequestLog: ({ req, log = {} }) => {
configureRequestLog: ({ req, log = { request: { metaData: {} } } }) => {
const clonedLog = JSON.parse(JSON.stringify(log));
const { cookies } = req;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const description = 'A Progressive Web App ready Holocron Module';
export default {
csp,
pwa,
configureRequestLog: ({ req, log = {} }) => {
configureRequestLog: ({ req, log = { request: { metaData: {} } } }) => {
const clonedLog = JSON.parse(JSON.stringify(log));
const { cookies } = req;

Expand Down

0 comments on commit 9d62c6d

Please sign in to comment.