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.

Hi, I am trying to deploy a Typescript + Fastify API to Digital Ocean Functions. I have referred to the example typescript repo: https://github.com/digitalocean/sample-functions-typescript-helloworld and have structured my project in the same manner.
My structure is as follows:
functions
│ ├── packages
│ │ └── api
│ │ └── crud-api
│ │ ├── package.json
│ │ ├── package-lock.json
│ │ ├── schema.sql
│ │ ├── src
│ │ │ ├── config
│ │ │ │ └── supabase.ts
│ │ │ ├── index.ts
│ │ │ ├── middleware
│ │ │ │ ├── auth.ts
│ │ │ │ ├── validate.ts
│ │ │ │ └── validation.ts
│ │ │ ├── routes
│ │ │ │ ├── auth.ts
│ │ │ │ ├── <hidden>.ts
│ │ │ │ ├── <hidden>.ts
│ │ │ │ ├── <hidden>.ts
│ │ │ │ ├── <hidden>.ts
│ │ │ │ └── <hidden>.ts
│ │ │ ├── services
│ │ │ │ ├── <hidden>.ts
│ │ │ │ └── <hidden>.ts
│ │ │ ├── types
│ │ │ │ └── index.ts
│ │ │ └── utils
│ │ │ ├── auth.ts
│ │ │ ├── logger.ts
│ │ │ └── storage.ts
│ │ ├── tsconfig.dev.json
│ │ └── tsconfig.json
│ └── project.yml
My project is very straight forward, CRUD endpoints to a database with less than 100 entries.
The result of doctl serverless deploy functions --remote-build
Deploying '/home/my-project/functions'
to namespace 'fn-****-****-****-****-********'
on host 'https://faas-lon1-****.doserverless.co'
Submitted function 'api/my-api' for remote building and deployment in runtime nodejs:18 (id: 972732c8a3d64c4fa732c8a3d63c4f46)
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Failures:
Error: While deploying action 'api/my-api' (running remote build): The function exceeded its time limits of 120000 milliseconds.
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan
EricWVGG