How to deploy API to Vercel
What's the easiest way to deploy a basic API endpoint to Vercel?
I made an Express app structured like:
api/index.js:
vercel.json:
The API just uploads files to S3 or GCS, so I'm open to using any other language or framework. It will mainly be used in my T3 app, but I found Next.js really confusing with handling files (tried to use HTML form, formidable, multer, ...)
Docs I followed:
* https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/node-js
* https://vercel.com/guides/using-express-with-vercel#standalone-express
I made an Express app structured like:
api/index.js:
vercel.json:
The API just uploads files to S3 or GCS, so I'm open to using any other language or framework. It will mainly be used in my T3 app, but I found Next.js really confusing with handling files (tried to use HTML form, formidable, multer, ...)
Docs I followed:
* https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/node-js
* https://vercel.com/guides/using-express-with-vercel#standalone-express
Vercel Documentation
Learn how to use the Node.js runtime to compile Node.js Serverless Functions on Vercel.
Vercel Documentation
Learn how to deploy an Express.js application to Vercel using Serverless Functions.
