Skip to content

Commit

Permalink
fix: request id
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 18, 2024
1 parent 755faf3 commit a83150e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
genReqId:
production || stage
? (req) => {
return (req.headers['cf-ray'] as string) ?? `dummy-${crypto.randomUUID()}`;
return (req.headers['x-request-id'] as string) ?? `dummy-prod-${crypto.randomUUID()}`;
}
: (): string => {
return `dummy-${crypto.randomUUID()}`;
Expand Down

0 comments on commit a83150e

Please sign in to comment.