We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74be078 commit b2f8f5bCopy full SHA for b2f8f5b
src/templates/getHandler.ts
@@ -56,7 +56,7 @@ const makeHandler =
56
return async (event, context) => {
57
let requestMode = mode
58
// Ensure that paths are encoded - but don't double-encode them
59
- event.path = new URL(event.path, event.rawUrl).pathname
+ event.path = new URL(event.rawUrl).pathname
60
// Next expects to be able to parse the query from the URL
61
const query = new URLSearchParams(event.queryStringParameters).toString()
62
event.path = query ? `${event.path}?${query}` : event.path
0 commit comments