Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m developing functions using the NodeJS runtime using TypeScript, and my compiled JavaScript code goes to a /dist directory, with the main function residing in index.js. I tried the following configuration in project.yml:
environment: {}
parameters: {}
packages:
- name: sample
environment: { }
parameters: { }
annotations: { }
functions:
- name: hello
binary: false
main: 'dist/index.js'
runtime: 'nodejs:default'
web: true
parameters: { }
environment: { }
annotations: { }
limits: { }
It deploys without any apparent issue, but when I try to run the function, it cannot start, and I get the following error in the logs:
"2022-07-24T17:15:51.915241077Z stdout: Action entrypoint 'dist/index.js' is not a function."
If I change the main property to /dist I get something like this:
"2022-07-24T17:21:27.668525053Z stdout: Error: Cannot find module '/tmp/fP5MxYsZ'"
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan