How To Deploy Node.js Server to Vercel | Node.js Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • Learn how you can deploy your Node.js server to Vercel without issues. Fix node.js not deploying to Vercel.
    vercel.json file content👇🏻
    {
    "version": 2,
    "builds": [
    {
    "src": "./index.js",
    "use": "@vercel/node"
    }
    ],
    "routes": [
    {
    "src": "/(.*)",
    "dest": "/"
    }
    ]
    }

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

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

    I have figuring this out for few days and this works, thanks man!

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

    crazy helpful 🙏🙏 tnx

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

      Glad I was able to help :)

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

    what should the package.json look like?

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

      The package.json is the default, you don't have to modify it. You just have to add and modify the vercel.json file.