Skip to content

Commit 9b1dc03

Browse files
committed
Handle undefined query string parameters
1 parent f8c6e3a commit 9b1dc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/presets/scaleway/runtime/scaleway-serverless.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function handler(event: Event, context: Context) {
1919
headers.host,
2020
event.path
2121
),
22-
event.queryStringParameters!
22+
event.queryStringParameters ?? {}
2323
);
2424

2525
const request = new Request(url, {

0 commit comments

Comments
 (0)