I have server/api/auth/login.post.ts and throw a 404 error.
When I make a post request from pages/auth/login.vue to that endpoint (or any endpoint),
it returns a 200 status, so function body execution doesn't go to the catch error.
Then I remove electron entirely, restart the nuxt app, and now handlers and requests work as expected.
Am I missing a configuration to convert server api endpoints to some form accepted by electron?
Is this a bug?
I have
server/api/auth/login.post.ts
and throw a 404 error. When I make a post request frompages/auth/login.vue
to that endpoint (or any endpoint), it returns a 200 status, so function body execution doesn't go to the catch error.Then I remove electron entirely, restart the nuxt app, and now handlers and requests work as expected.
Am I missing a configuration to convert server api endpoints to some form accepted by electron? Is this a bug?
Thank you. 💚💙🔥