You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Nuxt regularly you can have a page and a server middleware post method on the same path, but when deploying on Vercel using this builder it seem that the paths get hijacked and can no longer be used for server middleware, instead returning a 405 error.
For example, on this site I have a submit.vue page, and therefore, in order to get my post submit endpoint to work I had to update it to submitPost as seen here.
Is this the intended behavior?
The text was updated successfully, but these errors were encountered:
efraimbart
changed the title
A post method using the server middleware at the same path as a get method that serves up a page causes 405 error.A post method using the server middleware at the same path as a get method that serves up a page causes 405 error.
A post method using the server middleware at the same path as a get method that serves up a page causes 405 error.
Feb 3, 2023
When running Nuxt regularly you can have a page and a server middleware post method on the same path, but when deploying on Vercel using this builder it seem that the paths get hijacked and can no longer be used for server middleware, instead returning a 405 error.
For example, on this site I have a submit.vue page, and therefore, in order to get my post
submit
endpoint to work I had to update it tosubmitPost
as seen here.Is this the intended behavior?
The text was updated successfully, but these errors were encountered: