Deploying a backend on Vercel (APIs and Functions)
Ғылым және технология
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
Пікірлер: 79
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.
Dang that was some legit backend action right there.
man, i love vercel so much. it's sooooo awesome.
would love to see an in-depth video ✌👍
Finally a simple way to deploy APIs.
Thanks Vercerl you da real MVP
Nice one!, You explain it very good.
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.
More in-depth videos, please!
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.
I second that, great video!
Love this channel
@leerob
4 ай бұрын
Let me know what else you'd like to see!
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?
yes more the better, your explainations are S tair
Lee Rob the Goat 👌
thanks
Would love to see how to deploy a backend with Django.
Needed
I would love to be able to deploy a Docker container. Is Vercel planning on supporting that?
@thecoderabbi
4 ай бұрын
I second this
Please make on showing detailed info on how to deploy a NESTjs backend❤
@Varkoff
4 ай бұрын
yeah i'd need this as well ! Deploying a complete API server (not serverless) on Vercel would be awesome
@akshayhere
4 ай бұрын
Is it even possible? As they said, on Pro subscription, they limit long running services to 5 minutes.
Does this work for Nestjs as well ?
Pls make a more descriptive step-by-step tutorial 🙏🙏
Lovely
Can i host strapi too?
is there a way to make it faster? less than 30ms per request?
Can we deploy Nest.js on vercel?
Please fix vercel/og outside of nextjs!
Wil this eventually work for other languages, or is this going to stay as a tool for Javascript developers?
@VercelHQ
4 ай бұрын
We support Python and Go as well.
can i deploy a discord.js backend app based on websocket too?
does this work for Web Sockets as well?
@ujjawal_
4 ай бұрын
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.
True.. all backend frameworks.. Except PHP!!
@twitchizle
4 ай бұрын
they support php afaik
@aldoyh
4 ай бұрын
@@twitchizle I've reached their support and they replied that's possible if you convert them to JS using some tool! Oh C'mon!
@twitchizle
4 ай бұрын
@@aldoyh there should be php runtime support related text in the docs. Im 100% sure i saw it.
@aldoyh
4 ай бұрын
Please dear@@twitchizle .. Amaze me.
Does anyone know how this compares to Cloudflare Workers in terms of performance, latency, pricing etc?
@cayt3r
4 ай бұрын
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.
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
@nikitaistomin3588
4 ай бұрын
Have you tried using "concurrently" pkg?
@0xtz_
4 ай бұрын
@@nikitaistomin3588 yes but didn't work well hhhhh or 8 did something wrong
now can we host pocketbase on vercel ?
please we need detailed info
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.
@leerob
4 ай бұрын
Thank you, yeah would love to dig in and also get a better Hono example up!
please show us a guide on how to deploy express with typescript on vercel
@neociber24
4 ай бұрын
Keep in mind Vercel is for serverless
@leerob
4 ай бұрын
Love this suggestion, can do.
@oeuvars
4 ай бұрын
@@leerob Thank you!
@fire17102
4 ай бұрын
@@oeuvars hey yo, hope it's ok to ask, what's the meaning of the symbol in your pic? Thx and all the best
@oeuvars
4 ай бұрын
@@fire17102 Hindu swastika, i understand the logic behind your question lol. And thank you.
can we run deno on vercel?
@VercelHQ
4 ай бұрын
github.com/vercel-community/deno
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.
@aberba
4 ай бұрын
Do you build with babel?
@sleekism
4 ай бұрын
Deploying to a lot of modern clouds have this issue. Stuff just stops working without any stimulus
@mettle_x
4 ай бұрын
@@aberba No, I use the default TypeScript setup from Next.js
does it work with a .NET api?
Its like firebase function.
Hey guys, how come Python is not a Vercel Framework? Don't get it... Why can't you run my flask?
Understood about 1% of this.
are this lambdas?
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! 😊