Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 1e35de0

Browse files
committed
Netlify function template: Remove requestContext object
This object is not needed on Netlify. It is a relict of next-aws-lambda.
1 parent 18a7082 commit 1e35de0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/templates/netlifyFunction.js

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ exports.handler = async (event, context, callback) => {
1818
// Render the Next.js page
1919
const response = await renderNextPage({
2020
...event,
21-
// Required. Otherwise, reqResMapper will complain
22-
requestContext: {},
2321
});
2422

2523
// Convert header values to string. Netlify does not support integers as

0 commit comments

Comments
 (0)