Deploy Node JS or Express JS Project to Vercel | Free Node Js Deployment

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

КОМЕНТАРІ • 74

  • @rosarioscarlata4178
    @rosarioscarlata4178 15 годин тому

    Thank you bro! it helps me a lot 🙏🙏🙏

  • @chandangupta6970
    @chandangupta6970 5 місяців тому +1

    Thanks Bro after lots of effort i get the right way to deploy with your video

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

    Thanks Man You Have Solved My Problem GOD Bless You

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

    hi I have this error
    WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore):
    - {"src":"./server.js","use":"@vercel/node"}

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

      The error indicates that the build configuration in the `vercel.json` file defines a source (`"src": "./server.js"`) that does not match any actual source files. It suggests ensuring that the file is not included in `.vercelignore`.
      To resolve this issue:
      1. Check your file paths: Ensure that `server.js` exists in the root directory or the correct path as per your build configuration. If it's in a different directory, update the `src` path accordingly.
      2. Check `.vercelignore`: Ensure that `server.js` is not being ignored by `.vercelignore`. If it is listed there, remove it.
      3. Verify your `vercel.json`: Make sure the configuration in your `vercel.json` matches the actual file structure and paths.
      Example of a corrected `vercel.json`:
      ```json
      {
      "builds": [
      {
      "src": "./server.js",
      "use": "@vercel/node"
      }
      ]
      }
      ```

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

      @@CodeSplitter thank you, to be honest I didn't expect a response ai appreciate it, I just figured this out as well, ill subscribe to your channel

  • @tushuoye
    @tushuoye Місяць тому +1

    bro i have made frontend and backend. i have deployed the backend on vercel and then I deployed my frontend on vercel I am getting cors error because each time Iadd the deployed links they gets changed with the new link . is there any way to connect with you

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

      Contact me via engrharis.uetm@gmail.com

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

      Go to your vercel dashboard and get the link from there and whenever you push Changes so use vercel --prod (double dash prod)

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

    Really appreciate the explanation way

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

      Happy to hear that, thank you.

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

    So helpful for me. Thank you so much

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

      You're Welcome dear.
      Happy to hear that.

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

    If i change anything in the code how it will update in vercel

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

      You have to type "vercel --prod" every time when you push latest changes to vercel

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

      And it is told in video already. Kindly watch video again if you are still confused.

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

    Thank you. It helped so much.

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

      Happy to hear that!
      You're welcome.

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

    When i typed vercel, I was asked some questions. One question was "Import from existing project?" and i clicked no by following your instruction. but i have the codebase in github and now is it possible for me to connect with the github repo and avoid vercel --prod to deploy the changes each and everytime?

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

      Yes but for that you have to connect with GitHub from vercel

  • @PatriciaStover-o5f
    @PatriciaStover-o5f 2 місяці тому +1

    what about the environment variables?

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

      You can add there as well in vercel but if you push it along so it work also.

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

    Do we have to upload the vercel.json file to git hubrepo

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

      Yes but it's directly deployment and has no connection with git.

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

    Great video! Will my backend be always accessible at all time?

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

    I get the Error: The package `@vecel/node` is not published on the npm registry. Do you know why?

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

      Delete node modules and then try install again and see

  • @Somvang-t7n
    @Somvang-t7n 3 місяці тому

    it say "500: INTERNAL_SERVER_ERROR" how should i fix. Help me please.

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

      Code was running smoothly on localhost?

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

      If so, then follow the exactly 3 steps mentioned in video and you would be able to deploy correct

    • @Somvang-t7n
      @Somvang-t7n 3 місяці тому

      @@CodeSplitter yes

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

    Nice One

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

    i have no file sever.json in my node.js project

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

      i am using tyepscript so which will be the file?

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

      Look for either server.ts, index.ts or app.ts
      ts / tsx

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

    I get 404 file not found error

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

      Make sure to follow those three steps mentioned in video.

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

    Getting 500 error of serverless function crashed

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

      Make sure you uploaded the correct vercel.json file

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

      And correctly followed that 3 steps

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

      @@CodeSplitter already followed all steps still not working
      Currently i had successfully deployed same project in render

    • @CodeSplitter
      @CodeSplitter  5 місяців тому +1

      @@amitvarotaria2683 then it shouldn't throw such an error. BTW good to done with render.

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

      ​@@amitvarotaria2683 same case with me on vercel im getting server timeout error

  • @houseofdragons9764
    @houseofdragons9764 5 місяців тому +1

    Thank you!

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

    says "vercel" is not a command

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

      Make sure you installed vercel

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

      npm install -g vercel

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

      @@CodeSplitter I already do that but keeps showing error

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

      @@ZabalaX make sure you are using CMD not PowerShell

  • @sandeepmishra5753
    @sandeepmishra5753 5 місяців тому +1

    Thank you.

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

    is it free ?

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

    Error: File /vercel/path1/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.
    can you help me. Whatever i do this error haunted me

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

      Make use that you are using latest dependences.

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

      I never got this error

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

      Try delete project from vercel and uninstall deps and then run npm install/ yarn add

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

      And make sure to follow that 3 steps correctly

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

    gracias