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.
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?