Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js Serverless Function template doesn't work (gives a 404) #852

Closed
janek opened this issue Jan 15, 2024 · 2 comments
Closed

Node.js Serverless Function template doesn't work (gives a 404) #852

janek opened this issue Jan 15, 2024 · 2 comments

Comments

@janek
Copy link

janek commented Jan 15, 2024

This is a duplicate of #767. It's about https://vercel.com/templates/other/nodejs-serverless-function-express.

Reproduction - deploy

  1. Click deploy on https://vercel.com/templates/other/nodejs-serverless-function-express
  2. Go through the process, i.e. authorize creating a repository
  3. Go to your deployment
  4. You will see a 404

Reproduction - local

  1. Clone/copy the template locally
  2. vercel dev
  3. Go to localhost:3000
  4. You will see a 404
image
@leerob
Copy link
Member

leerob commented Jan 15, 2024

You need to go to the route: /api/hello.

e.g. https://nodejs-api-example.vercel.app/api/hello

@leerob leerob closed this as completed Jan 15, 2024
@janek
Copy link
Author

janek commented Jan 24, 2024

Right! Thanks and sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants