I have a simple function I create from the “hello” sample in the Netlify Functions documentation. This function works fine locally and when deployed if I have it in functions/hello.js (functions is my top level folder in my repository and my .toml file has functions = “functions”).
However, if I place the file in functions/hello/hello.js it fails to deploy. I can run it locally with netlify dev just fine, but when I look at my deploy log I just see “0 new functions to upload”. I can see the files in GitHub so I know I committed and pushed fine. And the previous function at functions/hello.js is gone after deploy.
What am I missing? The documentation says I should be able to place the file in a folder with the same name. The FaunaDB netlify function create command also puts the files in a folder with the same name as the function.