env.esq/netlify/functions/hello-world.js
2023-06-03 02:48:02 +05:30

11 lines
No EOL
255 B
JavaScript

exports.handler = async () => {
let envString = "";
for (let key in process.env) {
envString += `${key}: ${process.env[key]}
`;
}
return {
statusCode: 200,
body: `hello world! I have a hotub ${envString}`,
};
};