- Create a netlify.toml file for using serverless functions on the website hosted on Netlify.
- If any other hosting service search for the documentation for creating .toml file.
- Put the functions in the functions directory in the root of the project.
- Every function file must contain one export handler and only that will be valid and can be used.
exports.handler = async function(event, context) {...};