Netlify CLI - function not found (dev)

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

  functions = "functions"

My functions/hello.js

exports.handler = async () => ({
  statusCode: 200,
  body: 'Hello Netlify Functions!'

Screenshot of my terminal

What am I doing wrong?

Functions are available at http://localhost:8888/.netlify/functions/ unless there’s a redirect that you’ve setup.

1 Like

Oh, that’s right!
My bad, should’ve read docs better…