nuxt / vercel-builder

Vercel Builder for Nuxt
MIT License
645 stars 75 forks source link

A post method using the server middleware at the same path as a get method that serves up a page causes 405 error. #790

Open efraimbart opened 1 year ago

efraimbart commented 1 year ago

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?