Deploying a backend on Vercel (APIs and Functions)

Sdílet
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

Komentáře • 79

  • @cnikolov
    @cnikolov Před 5 měsíci +9

    Lee you are landing really nicely with these videos, I think the missing piece now is exploring the possibilities with edge

  • @yaelgonzalez6114
    @yaelgonzalez6114 Před 4 měsíci

    Deploying to Vercel looks amazing.

  • @jjrise
    @jjrise Před 5 měsíci +5

    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.

  • @user-go5eu2jj3m
    @user-go5eu2jj3m Před 4 měsíci

    Dang that was some legit backend action right there.

  • @LS-in1xn
    @LS-in1xn Před měsícem

    man, i love vercel so much. it's sooooo awesome.

  • @lovekyordie15
    @lovekyordie15 Před měsícem

    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.

  • @TadeoGonzalez-oq4ym
    @TadeoGonzalez-oq4ym Před 4 měsíci

    Thanks Vercerl you da real MVP

  • @tejusr5525
    @tejusr5525 Před 5 měsíci +2

    would love to see an in-depth video ✌👍

  • @stonekingproductions
    @stonekingproductions Před 4 měsíci

    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?

  • @anayeliriverasalgado8062
    @anayeliriverasalgado8062 Před 4 měsíci

    Finally a simple way to deploy APIs.

  • @KulturanCov
    @KulturanCov Před měsícem

    More in-depth videos, please!

  • @arkoose
    @arkoose Před 5 měsíci

    Nice one!, You explain it very good.

  • @JosueHernandez-qj4ty
    @JosueHernandez-qj4ty Před 4 měsíci

    I second that, great video!

  • @shivanshpatel4072
    @shivanshpatel4072 Před 5 měsíci +1

    Does this work for Nestjs as well ?

  • @miguelemmara5046
    @miguelemmara5046 Před 5 měsíci

    is there a way to make it faster? less than 30ms per request?

  • @dev_franqqi
    @dev_franqqi Před 5 měsíci +5

    Love this channel

    • @leerob
      @leerob Před 5 měsíci

      Let me know what else you'd like to see!

  • @raihan8097
    @raihan8097 Před 5 měsíci +2

    Can i host strapi too?

  • @mzafarr
    @mzafarr Před 5 měsíci +1

    Can we deploy Nest.js on vercel?

  • @EvHaus
    @EvHaus Před 5 měsíci +6

    I would love to be able to deploy a Docker container. Is Vercel planning on supporting that?

  • @gappalchemist
    @gappalchemist Před 5 měsíci

    Lee Rob the Goat 👌

  • @BlackishGreen
    @BlackishGreen Před 5 měsíci

    can i deploy a discord.js backend app based on websocket too?

  • @aldrickdev
    @aldrickdev Před 5 měsíci

    Wil this eventually work for other languages, or is this going to stay as a tool for Javascript developers?

    • @VercelHQ
      @VercelHQ  Před 5 měsíci +1

      We support Python and Go as well.

  • @BhideSvelte
    @BhideSvelte Před 5 měsíci

    now can we host pocketbase on vercel ?

  • @jonathangamble
    @jonathangamble Před 5 měsíci +1

    Please fix vercel/og outside of nextjs!

  • @IvanRandomDude
    @IvanRandomDude Před 5 měsíci +7

    Does anyone know how this compares to Cloudflare Workers in terms of performance, latency, pricing etc?

    • @cayt3r
      @cayt3r Před 5 měsíci +1

      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.

  • @jellyfish1772
    @jellyfish1772 Před 5 měsíci +11

    Please make on showing detailed info on how to deploy a NESTjs backend❤

    • @Varkoff
      @Varkoff Před 5 měsíci +1

      yeah i'd need this as well ! Deploying a complete API server (not serverless) on Vercel would be awesome

    • @akshayhere
      @akshayhere Před 5 měsíci +2

      Is it even possible? As they said, on Pro subscription, they limit long running services to 5 minutes.

  • @anuragdhote8902
    @anuragdhote8902 Před 5 měsíci +2

    does this work for Web Sockets as well?

    • @ujjawal_
      @ujjawal_ Před 5 měsíci

      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.

  • @ignacioaristegui5197
    @ignacioaristegui5197 Před 5 měsíci +1

    Would love to see how to deploy a backend with Django.

  • @nicov99
    @nicov99 Před 5 měsíci

    does it work with a .NET api?

  • @0xtz_
    @0xtz_ Před 5 měsíci

    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
      @nikitaistomin3588 Před 5 měsíci

      Have you tried using "concurrently" pkg?

    • @0xtz_
      @0xtz_ Před 5 měsíci

      @@nikitaistomin3588 yes but didn't work well hhhhh or 8 did something wrong

  • @mystickago
    @mystickago Před 5 měsíci +2

    yes more the better, your explainations are S tair

  • @mettle_x
    @mettle_x Před 5 měsíci

    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
      @aberba Před 5 měsíci

      Do you build with babel?

    • @sleekism
      @sleekism Před 5 měsíci +1

      Deploying to a lot of modern clouds have this issue. Stuff just stops working without any stimulus

    • @mettle_x
      @mettle_x Před 5 měsíci

      @@aberba No, I use the default TypeScript setup from Next.js

  • @codemedic
    @codemedic Před měsícem

    Pls make a more descriptive step-by-step tutorial 🙏🙏

  • @ColdestElite_Vibe
    @ColdestElite_Vibe Před 5 měsíci

    thanks

  • @HardikAjani
    @HardikAjani Před 5 měsíci

    Lovely

  • @dmarksbarber
    @dmarksbarber Před 5 měsíci

    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
      @leerob Před 5 měsíci

      Thank you, yeah would love to dig in and also get a better Hono example up!

  • @ekchills6948
    @ekchills6948 Před 5 měsíci +1

    please we need detailed info

  • @geralddd.g
    @geralddd.g Před 5 měsíci

    Needed

  • @b_two
    @b_two Před 5 měsíci +1

    can we run deno on vercel?

    • @VercelHQ
      @VercelHQ  Před 5 měsíci +1

      github.com/vercel-community/deno

  • @aldoyh
    @aldoyh Před 5 měsíci +3

    True.. all backend frameworks.. Except PHP!!

    • @twitchizle
      @twitchizle Před 5 měsíci

      they support php afaik

    • @aldoyh
      @aldoyh Před 5 měsíci

      @@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
      @twitchizle Před 5 měsíci

      @@aldoyh there should be php runtime support related text in the docs. Im 100% sure i saw it.

    • @aldoyh
      @aldoyh Před 5 měsíci

      Please dear@@twitchizle .. Amaze me.

  • @fire17102
    @fire17102 Před 5 měsíci

    Hey guys, how come Python is not a Vercel Framework? Don't get it...
    Why can't you run my flask?

  • @oeuvars
    @oeuvars Před 5 měsíci +18

    please show us a guide on how to deploy express with typescript on vercel

    • @neociber24
      @neociber24 Před 5 měsíci

      Keep in mind Vercel is for serverless

    • @leerob
      @leerob Před 5 měsíci +5

      Love this suggestion, can do.

    • @oeuvars
      @oeuvars Před 5 měsíci

      @@leerob Thank you!

    • @fire17102
      @fire17102 Před 5 měsíci

      ​@@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
      @oeuvars Před 5 měsíci +1

      @@fire17102 Hindu swastika, i understand the logic behind your question lol.
      And thank you.

  • @guillermobarboza5903
    @guillermobarboza5903 Před 5 měsíci

    are this lambdas?

  • @lambertotamayo4320
    @lambertotamayo4320 Před 5 měsíci

    Its like firebase function.

  • @loveboat
    @loveboat Před 5 měsíci

    Understood about 1% of this.

  • @nothorizonhere
    @nothorizonhere Před 5 měsíci

    Make it so you get unlimited bandwith with pro plan

  • @cnikolov
    @cnikolov Před 5 měsíci +5

    The easiest way to turn your apis to lambdas

  • @george_davituri
    @george_davituri Před 5 měsíci

    🤟🏻🏂

  • @simonmbewe6324
    @simonmbewe6324 Před 3 měsíci

    time westing .next time just go direct to a point

  • @aralroca
    @aralroca Před 5 měsíci

    Would love to see some Bun.js examples! 😊