Nuxt not generating server routes

I am trying to create a couple of server routes in Nuxt but It does not seem to work. When I look at the type definition I can only see /__nuxt_error. I cannot provide a reproducible environment because our app is quite complex but I wonder if someone had similar issues previously or maybe they have any idea about why this could be happening.

Something that might help is that every time I do a request to the API I get a page not found: /api/test.
image.png
Was this page helpful?