Next.js Discord

Discord Forum

404: NOT_FOUND FastAPI

Unanswered
Malek posted this in #help-forum
Open in Discord
Hey guys!

Im trying to host an API endpoint using FastAPI, since its better than Next.js or Node
This is my repo: https://github.com/undrstnd-labs/ai-api
And when I host it on Vercel I get this https://ai-api-git-build-fast-api-findmalek-team.vercel.app/ (404: NOT_FOUND)

But locally it works fine (as seen in the image)
This is how i run the app locally:pip install -r requirements.txt && prisma generate && python3 -m uvicorn main:app --reload"

In the build logs, i dont see any downloading for the packages (in the second image)

3 Replies

I will appreacite any help, and if you think you should get paid, im open for that too
I really want to get this done by tonight
I have tried using this: https://vercel.com/templates/next.js/nextjs-fastapi-starter

but when i call the /api/py/helloFastApi it dosent work
i think i should update this