nhost: Functions ignored during deploy when base directory is not repo root
I have a function that I am using as a Hasura action. Everything works as expected locally, using the CLI, however when the project deploys in the cloud the functions do not get built.
I am I doing something wrong? Or is there somewhere I can see detailed deployment logs?
Version: Nhost CLI v0.6.12 for darwin-amd64
Functions located in functions directory:

Deploy occurs after committing to repo, but no functions were built:

No functions listed:

Server returns generic error, if I change the function name to gibberish I get the same error message returned:

It works when running locally:

About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (10 by maintainers)
@joserocha3 I found the issue, the fix is coming…
@joserocha3 thanks for reporting and sorry for this happening. The problem is that our system installs dependencies from the root dir, not from the base dir where
nhostandfunctionsare located. The fix is coming very soon…There are two bugs in this issue, and I’ve been able to reproduce both.
1. Functions are not built when using a subdirectory
2. CLI doesn’t skip endpoints for
_file/folders.I’ve created an issue here: https://github.com/nhost/cli/issues/267