Running "node api"

How do I run “node api” on the server? I have an express API that is working in localhost but when I deploy I get this error message when trying to go to the endpoint.


This Serverless Function has crashed.

Your connection is working correctly.

Vercel is working correctly.

500: INTERNAL_SERVER_ERRORCode: FUNCTION_INVOCATION_FAILEDID: cle1::xlnqk-1726164896705-e81ab25379ba


Hi, @pkdiscgolf! Welcome to the Community :smile:

Could you try troubleshooting using the steps outlined in these docs?

How do I run node api on the server?

  1. Review deployment configuration: Double-check the deployment configuration to ensure that the Edge Function is being deployed correctly

How do I indicate to the deployment configuration that I want the command node api to run on the server?

When I try to add in “node api” in the project settings like this
node api && npm install;

It shows “server running” in the build logs. However, the deployment never finishes

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