Relative Content

Tag Archive for typescriptexpressdeploymentserverlessvercel

Vercel deployment changing maxDuration not working, functions config not recognizing my routes

I am trying to deploy my backend to Vercel but increasing the maxDuration to 30 seconds. However, builds does not support modifying a functions maxDuration so I attempted to use the functions config. However, my backend is written in TypeScript with the code compiled in a dist directory. My main route file is called index.js inside an API folder, meaning after compilation that file is in /dist/api/index.js. Regardless of what I do, Vercel does not recognize my function and wants it to be in an api directory, which I can’t pull off since my compiled files are directed to the dist directory.