I’m using netlify dev
locally to build a serverless function.
When I go to http://localhost:8888/functions/hello
there is an error GET http://localhost:8888/functions/hello 404 (Not Found)
My netlify.toml
[build]
functions = "functions"
My functions/hello.js
exports.handler = async () => ({
statusCode: 200,
body: 'Hello Netlify Functions!'
});
Screenshot of my terminal
What am I doing wrong?