Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/templates/getHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const makeHandler =
return async (event, context) => {
let requestMode = mode
// Ensure that paths are encoded - but don't double-encode them
event.path = new URL(event.path, event.rawUrl).pathname
event.path = new URL(event.rawUrl).pathname
// Next expects to be able to parse the query from the URL
const query = new URLSearchParams(event.queryStringParameters).toString()
event.path = query ? `${event.path}?${query}` : event.path
Expand Down