Node.js Express Deployment on Vercel: Quick and Easy

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 54

  • @lets-build-together
    @lets-build-together  Год назад +4

    Sometimes vercel is timing out for long operations, if that's the case. Deploy your application in render (ruclips.net/video/VHMAcM1T1IY/видео.html)

    • @RoyBombale
      @RoyBombale 21 день назад

      dont use render it provide literally 0.1 cpu

  • @jasmeetsingh4551
    @jasmeetsingh4551 8 месяцев назад +11

    I'm confused. 0:57 and 1:21, on both these timestamps, your vercel.json looks different. What exactly do we have to mention?

    • @lets-build-together
      @lets-build-together  8 месяцев назад +2

      Hey sorry for the confusion, please go with the one mentioned at 0.57.

    • @jasmeetsingh4551
      @jasmeetsingh4551 7 месяцев назад +1

      @@lets-build-together Thanks dude... Sorry for the late reply...didn't see your message. I went for the one on 0:57 only 👍😊 unfortunately, vercel is timing out longer operations saying "This serverless function has timed out"... But I'm gonna try other options like Render, Railway or AWS 👍

    • @rahkikikiki
      @rahkikikiki 2 месяца назад

      @@jasmeetsingh4551 don't give up bro, just keep trying

  • @HelenaDuGraus
    @HelenaDuGraus 7 месяцев назад +14

    Here I get "Internal server error"

    • @hemanthnath3258
      @hemanthnath3258 5 месяцев назад +1

      Same for me too. Is it resolved?

  • @khangbui446
    @khangbui446 3 месяца назад +5

    How do you deploy .ejs - expressjs app? I've been trying to do this but got 404.

  • @blackslash4954
    @blackslash4954 6 месяцев назад +3

    Hello, i tried deploying the backend on vercel. Deployed frontend already.
    Was not able to fetch some of the mongo db data, users particularly, for sign up and login.
    error: 504.
    When I deployed the backend on render, it worked.
    How to solve this issue?

    • @chitraarasuk25
      @chitraarasuk25 6 месяцев назад

      Hi, this is serverless, so instances of your app can be started and stopped an anytime between requests. That means you need to connect to mongo before you listen on the server port. In render for example the server will start and stay running so the connection is not ready for the first second or two.

    • @blackslash4954
      @blackslash4954 6 месяцев назад

      @@chitraarasuk25 already starting server after the connection sir

    • @AdeniyiAdebowale-yi9fc
      @AdeniyiAdebowale-yi9fc Час назад

      I think it's an issue with using vercel
      You have to create the js files in different API/route/app.js

  • @oselechidera3957
    @oselechidera3957 10 месяцев назад +2

    no repo link?

  • @weixiangng8279
    @weixiangng8279 3 месяца назад

    For environment files how you set it up? For the express js and vercel.

  • @kikevanegazz325
    @kikevanegazz325 Месяц назад

    t just went wonderfully, man!

  • @hanslou5309
    @hanslou5309 8 месяцев назад +2

    What if my build command builds everything to a dist/ directory? How would I change the configuration? Thank you :)

  • @HasanaliAsadov
    @HasanaliAsadov Месяц назад

    ZORDU BRAT DAVAMI GELSIN 🤙

  • @florentgironde7279
    @florentgironde7279 2 месяца назад

    2:09 it help me a lot; thanks !!

  • @lucasgaspari4175
    @lucasgaspari4175 8 месяцев назад +1

    thank you!! it works correctly :)

  • @josuekomi6246
    @josuekomi6246 Месяц назад

    thank you sir , it helped a bunch

  • @Lavanya-t2t
    @Lavanya-t2t 3 месяца назад

    I got a internal server error? Please upload a video resolves the error

  • @anounman
    @anounman 11 месяцев назад

    When we used the import method (type : "module") it's not working in vercel even I already defined the type in package.json

    • @lets-build-together
      @lets-build-together  10 месяцев назад

      Hey hi, i think you have to enable the es6 support for node, you can read more here www.geeksforgeeks.org/how-to-use-an-es6-import-in-node-js/

  • @progamer-ss1ft
    @progamer-ss1ft 2 месяца назад

    where does env came from?

  • @CodeWithRains
    @CodeWithRains 4 месяца назад

    bhai mere ko
    This deployment does not have a deployment summary. aara !

  • @minhazrabbi531
    @minhazrabbi531 2 месяца назад

    Thank you so much, it worked.

  • @purpleh3ad_695
    @purpleh3ad_695 11 месяцев назад

    More power to you, brother.

  • @MakarovSergey39
    @MakarovSergey39 10 месяцев назад +5

    If you dont mind I request tutorial how to hosting(free) postgresql database with nodejs+express+sequelize as a server please.

    • @TutoMaster
      @TutoMaster 8 месяцев назад

      Render

    • @footgame756
      @footgame756 7 месяцев назад

      @@TutoMaster thanks budy render is life saving netlify killed me :=?

    • @Tussu17
      @Tussu17 7 месяцев назад

      @@footgame756 Whyyyy!

  • @rahkikikiki
    @rahkikikiki 2 месяца назад

    thanks you saved my api

  • @soniyaratnakar1726
    @soniyaratnakar1726 11 месяцев назад

    Hi, my index.js is in src folder, what modification I need to do to vercel.json?

    • @lets-build-together
      @lets-build-together  10 месяцев назад +1

      Hey hi, you have to tell where exactly your index file inside vercerl.json>builds ( "builds":[{"src":"./src/index.js",...}] )

  • @Sooraj-Rao6
    @Sooraj-Rao6 10 месяцев назад

    Thanks mate!

  • @ashandimantha6538
    @ashandimantha6538 6 месяцев назад +1

    Thank you 💖💖

  • @luisfernandochota
    @luisfernandochota 3 месяца назад

    Thanks you!

  • @dansinn
    @dansinn 5 месяцев назад +2

    Thanks

  • @tanmaychavan743
    @tanmaychavan743 10 месяцев назад

    Thank you so much ❤

  • @mohammadrehan-zg2bg
    @mohammadrehan-zg2bg 4 месяца назад

    Big big thanks

  • @Vampion
    @Vampion 11 месяцев назад +2

    404 not found

    • @lets-build-together
      @lets-build-together  11 месяцев назад

      Hey sorry I didn’t get you. You are facing any issue?

    • @muzafferkadir
      @muzafferkadir 7 месяцев назад +2

      same.

    • @dingus42
      @dingus42 6 месяцев назад +1

      same here

    • @mehrinfirdousi3834
      @mehrinfirdousi3834 5 месяцев назад

      same

    • @dingus42
      @dingus42 5 месяцев назад

      @@mehrinfirdousi3834 hey so I solved it for mine, just find and use a barebones vercel/node app from anyone else that works and slowly add your own files until it breaks. That should help you find what is the problem