Це відео не доступне.
Перепрошуємо.

Node.js Express Deployment on Vercel: Quick and Easy

Поділитися
Вставка
  • Опубліковано 16 сер 2024

КОМЕНТАРІ • 41

  • @lets-build-together
    @lets-build-together  10 місяців тому +3

    Sometimes vercel is timing out for long operations, if that's the case. Deploy your application in render (ua-cam.com/video/VHMAcM1T1IY/v-deo.html)

  • @HelenaDuGraus
    @HelenaDuGraus 4 місяці тому +7

    Here I get "Internal server error"

  • @weixiangng8279
    @weixiangng8279 10 днів тому

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

  • @khangbui446
    @khangbui446 7 днів тому

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

  • @jasmeetsingh4551
    @jasmeetsingh4551 5 місяців тому +4

    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  5 місяців тому +1

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

    • @jasmeetsingh4551
      @jasmeetsingh4551 4 місяці тому

      @@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 👍

  • @Lavanya-t2t
    @Lavanya-t2t 9 днів тому

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

  • @oselechidera3957
    @oselechidera3957 7 місяців тому +2

    no repo link?

  • @lucasgaspari4175
    @lucasgaspari4175 4 місяці тому +1

    thank you!! it works correctly :)

  • @CodeWithRains
    @CodeWithRains Місяць тому

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

  • @blackslash4954
    @blackslash4954 3 місяці тому +1

    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 3 місяці тому

      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 3 місяці тому

      @@chitraarasuk25 already starting server after the connection sir

  • @hanslou5309
    @hanslou5309 5 місяців тому +2

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

  • @ashandimantha6538
    @ashandimantha6538 3 місяці тому +1

    Thank you 💖💖

  • @purpleh3ad_695
    @purpleh3ad_695 8 місяців тому

    More power to you, brother.

  • @mohammadrehan-zg2bg
    @mohammadrehan-zg2bg Місяць тому

    Big big thanks

  • @anounman
    @anounman 8 місяців тому

    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  7 місяців тому

      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/

  • @tanmaychavan743
    @tanmaychavan743 7 місяців тому

    Thank you so much ❤

  • @Sooraj-Rao6
    @Sooraj-Rao6 7 місяців тому

    Thanks mate!

  • @soniyaratnakar1726
    @soniyaratnakar1726 8 місяців тому

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

    • @lets-build-together
      @lets-build-together  7 місяців тому +1

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

  • @dansinn
    @dansinn 2 місяці тому +1

    Thanks

  • @MakarovSergey39
    @MakarovSergey39 7 місяців тому +4

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

    • @TutoMaster
      @TutoMaster 5 місяців тому

      Render

    • @footgame756
      @footgame756 3 місяці тому

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

    • @Tussu17
      @Tussu17 3 місяці тому

      @@footgame756 Whyyyy!

  • @Vampion
    @Vampion 8 місяців тому +2

    404 not found

    • @lets-build-together
      @lets-build-together  8 місяців тому

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

    • @muzafferkadir
      @muzafferkadir 4 місяці тому +2

      same.

    • @dingus42
      @dingus42 3 місяці тому +1

      same here

    • @mehrinfirdousi3834
      @mehrinfirdousi3834 2 місяці тому

      same

    • @dingus42
      @dingus42 2 місяці тому

      @@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