You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/serve.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,13 @@ function createCallback(response) {
45
45
);
46
46
}else{
47
47
if(
48
-
process.env.CONTEXT!=="production"||
48
+
response.statusCode!==204&&
49
+
process.env.CONTEXT!=="production"&&
49
50
!process.env.SILENCE_EMPTY_LAMBDA_WARNING
50
51
)
51
52
console.log(
52
53
`Your lambda function didn't return a body, which may be a mistake. Check our Usage docs for examples (https://github.com/netlify/netlify-lambda#usage).
53
-
If this is intentional, you can silence this warning by setting process.ENV.SILENCE_EMPTY_LAMBDA_WARNING to a truthy value or process.env.CONTEXT to 'production'`
54
+
If this is intentional, you can silence this warning by setting process.env.SILENCE_EMPTY_LAMBDA_WARNING to a truthy value or process.env.CONTEXT to 'production'`
0 commit comments