Skip to content

Commit 387d7e8

Browse files
committed
Change rawURL to use the origin variable
1 parent 1a2b9c2 commit 387d7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda/serverless.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function handler(event, context) {
2828
? process.env['ORIGIN']
2929
: `https://${requestContext.domainName}`
3030

31-
let rawURL = `https://${requestContext.domainName}${rawPath}${
31+
let rawURL = `${origin}${rawPath}${
3232
rawQueryString ? `?${rawQueryString}` : ''
3333
}`
3434

0 commit comments

Comments
 (0)