NuxtN
Nuxt2y ago
43 replies
ZaKk

api 404

hello guys, i've been strugling with this for a couple of days, i have my project like this:
root
-components
--component1
--component2
-pages
--page1
--page2
-server
--api
---api1
---api2

when i run the project with "yarn dev" it works good, all api calls have a response, when i use "npm run generate" it generate the project with no errors, then when i use "npm start" it starts with no errors but all api requests gets to 404 error, i even added debug messages into my api and they are not shown in console.

using:
nuxt 3.12.4
vue: latest
node: 20.5.1
Was this page helpful?