Deploying a backend on Vercel (APIs and Functions)
Vložit
- čas přidán 4. 07. 2024
- Learn how to deploy a backend to Vercel, like a REST API, through Vercel Functions. These backend APIs can then connect to your database or third-party services.
0:00 - Introduction
0:31 - Deploying a Node.js function
2:00 - Express
2:46 - Storage and logs
3:30 - Templates
3:57 - Conclusion
◆ Templates: vercel.com/templates
◆ Docs: vercel.com/docs
#vercel - Věda a technologie
Lee you are landing really nicely with these videos, I think the missing piece now is exploring the possibilities with edge
Deploying to Vercel looks amazing.
would love to see some Hono examples! I have a Hono API currently deployed to Render, but all my other apps are on Vercel, so it would be extremely nice to consolidate that all to one place.
Dang that was some legit backend action right there.
man, i love vercel so much. it's sooooo awesome.
I really hope Vercel keeps investing in hosting backends! Such an underrated use case. It is such an improvement to the considerably more manual options like managing all of the infrastructure and CI/CD on AWS directly.
Thanks Vercerl you da real MVP
would love to see an in-depth video ✌👍
I would like to see a more in depth video here. In order to use the api/ folder do you need to install Next.js?
Finally a simple way to deploy APIs.
More in-depth videos, please!
Nice one!, You explain it very good.
I second that, great video!
Does this work for Nestjs as well ?
is there a way to make it faster? less than 30ms per request?
Love this channel
Let me know what else you'd like to see!
Can i host strapi too?
Can we deploy Nest.js on vercel?
I would love to be able to deploy a Docker container. Is Vercel planning on supporting that?
I second this
Lee Rob the Goat 👌
can i deploy a discord.js backend app based on websocket too?
Wil this eventually work for other languages, or is this going to stay as a tool for Javascript developers?
We support Python and Go as well.
now can we host pocketbase on vercel ?
Please fix vercel/og outside of nextjs!
Does anyone know how this compares to Cloudflare Workers in terms of performance, latency, pricing etc?
It's always hard to compete with Cloudflare on the pricing front. They own the network which can reduce the egress fee significantly. Vercel is mostly wrapping around the providers like AWS, Cloudflare to provide better DX.
In any case, if you are using Vercel, you should think of it as outsourcing your DevOps/Platform team to them to provide a modernised DX that builds on top of serverless technology.
It's essentially a DevOps or Platform Engineering as a service, and the price definitely will be higher than Cloudflare, it's still business profit in the picture despite the DX improvement.
Please make on showing detailed info on how to deploy a NESTjs backend❤
yeah i'd need this as well ! Deploying a complete API server (not serverless) on Vercel would be awesome
Is it even possible? As they said, on Pro subscription, they limit long running services to 5 minutes.
does this work for Web Sockets as well?
no, I deployed my backend which is in express and socket io on vercel it was not working. After searching got to know it's not supported on vercel. So I looked for other alternatives.
Would love to see how to deploy a backend with Django.
does it work with a .NET api?
I can't change the run command ? bc I have a project with front and server and I need to run the vite and then node ./server/index.js
Have you tried using "concurrently" pkg?
@@nikitaistomin3588 yes but didn't work well hhhhh or 8 did something wrong
yes more the better, your explainations are S tair
I found Vercel serverless functions very flaky. It started receiving empty JSON body from Discord webhook interactions suddenly without prior notice or any code change from my end. The fault might not be from the Discord side since I just switched to a VPS and it worked fine there.
Do you build with babel?
Deploying to a lot of modern clouds have this issue. Stuff just stops working without any stimulus
@@aberba No, I use the default TypeScript setup from Next.js
Pls make a more descriptive step-by-step tutorial 🙏🙏
thanks
Lovely
I tried deploying Hono TypeScript with path aliases. Ran into issues. Tech support reached out to engineering but they never got back. Happy to share the ticket number.
Thank you, yeah would love to dig in and also get a better Hono example up!
please we need detailed info
Needed
can we run deno on vercel?
github.com/vercel-community/deno
True.. all backend frameworks.. Except PHP!!
they support php afaik
@@twitchizle I've reached their support and they replied that's possible if you convert them to JS using some tool! Oh C'mon!
@@aldoyh there should be php runtime support related text in the docs. Im 100% sure i saw it.
Please dear@@twitchizle .. Amaze me.
Hey guys, how come Python is not a Vercel Framework? Don't get it...
Why can't you run my flask?
please show us a guide on how to deploy express with typescript on vercel
Keep in mind Vercel is for serverless
Love this suggestion, can do.
@@leerob Thank you!
@@oeuvars hey yo, hope it's ok to ask, what's the meaning of the symbol in your pic? Thx and all the best
@@fire17102 Hindu swastika, i understand the logic behind your question lol.
And thank you.
are this lambdas?
Its like firebase function.
Understood about 1% of this.
Make it so you get unlimited bandwith with pro plan
The easiest way to turn your apis to lambdas
🤟🏻🏂
time westing .next time just go direct to a point
Would love to see some Bun.js examples! 😊