Error on Vercel deployment

After deployment of my project from git, i get this error:

{
“error”: "An error occured while trying to Log you in "
}

How can I fix this please? I don’t even know what’s wrong, it just started this today.

Hi,

Can you send us a screenshot?

1 Like

Sure thing:

It looks like you are trying to run a server which will not work on Vercel.

  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "nodemon server.js"
  },

Vercel is a serverless platform. The general rule is not to deploy an entire, monolithic Node.js/Express.js server on a pages/api which is a Serverless Function/AWS Lambda underneath. Serverless Functions are not meant to take on the load of an entire Node.js server.

1 Like

uhm, that’s weird, because i’ve been using this deployment for over 4 to 5 months without issues, this just broke today. So could you please profer a fix ?

oh oh ok, So please what do I do ?

You can review our templates to learn more about how you can deploy Serverless application: Find your Template – Vercel. Please let us know if you face any challenges.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.