Serverless Function to backend - NOT FOUND

Hi everyone! I’m doing a project for school in which I’m using NextJS to create an app. I have some api calls on a backend, and I saw this Vercel tutorial https://www.youtube.com/watch?v=yLMODEUPJdU on how to setup a Serverless Function. But I’m a bit lost on how to actually run it. Can anyone help me? Thanks! This is my current file structure for the backend. I ran vercel on the terminal and created a project on Vercel linked to it.


I already have the project deployed, but when I go on to test the api using ThunderClient, it returns this

Can anyone help me? Thanks!

This is the project url: beauty-backend-jade.vercel.app

Hi and welcome to the Vercel Community, Felipe!

I asked v0 to explain Serverless Function is and how to use it with Next.js. You can check out the chat here: Serverless Functions – v0 by Vercel

We have a debugging 404 errors post in case it’s also helpful:

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