Hi, I have added internationalization as per a blog post using Next.js. Since then the webhook for revalidate every time there is an update on the CMS stopped working with an error 405. Also, the contact form now gives an error 404 on localhost, and 405 on prod when submitting and this was working fine before.
I have read countless of post from Prismic, GitHub and Stackeoverflow but none offered me a solution. This has been for a week already.
I dicovered th errors while seeing that the update wasn't imediatly on the site after updating the CMS. Errors I am having are 405 on the Webhook and a POST 404/405 when submitting the contact form.
https://jam.dev/c/1935640f-4628-4ed0-a329-a0fb96785aff
response of form submission:
Uploading: image.png…
localaly, it gives me 404:
However, on the Vercel logs tab I can see a 200 for the form submission even though it didn't submit:
Role
I am the solo developer of the site.
Host
Vercel
Package.json file:
"dependencies": {
"@prismicio/client": "^7.3.1",
"@prismicio/next": "^1.5.0",
"@prismicio/react": "^2.7.3",
"@types/node": "^20.8.9",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@vercel/speed-insights": "^1.0.12",
"clsx": "^2.1.0",
"framer-motion": "^11.0.6",
"next": "^14.2.7",
"nodemailer": "^6.9.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swiper": "^11.0.7",
"tailwind-merge": "^2.2.1",
"typescript": "^5.2.2"
},
Steps to reproduce
You may have to login on the CMS to debug, Also, I can send a link to the repository.