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
4 changes: 4 additions & 0 deletions src/templates/getHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const makeHandler =
bridge.listen()

return async (event, context) => {
// 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

const { headers, ...result } = await bridge.launcher(event, context)
/** @type import("@netlify/functions").HandlerResponse */

Expand Down