Files
fission-src/examples/spec-example/nodejs-bodyParser-limit-example/hello/hello.js
T
Rahul BhatiandGitHub 9dd084810f Added support for setting bodyParser limit param via environment variable (#1618)
In the NodeJs environment, the body-parser was set to 1MB, this change makes it configurable with an env variable.
2020-05-24 00:16:03 +05:30

12 lines
241 B
JavaScript

const process = require("process");
module.exports = async function (context) {
let message =
"BODY_PARSER_LIMIT received from env variable " +
process.env.BODY_PARSER_LIMIT;
return {
status: 200,
body: message,
};
};