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
5 changes: 3 additions & 2 deletions lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ function createCallback(response) {
);
} else {
if (
process.env.CONTEXT !== "production" ||
response.statusCode !== 204 &&
process.env.CONTEXT !== "production" &&
!process.env.SILENCE_EMPTY_LAMBDA_WARNING
)
console.log(
`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).
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'`
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'`
);
}
response.end();
Expand Down