fetch always been: const response = await fetch(url, { method: "POST", headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(dataz), }) const data = await response.json()
and api route always started with:
export default async function (req, res) {
if (req.method === "POST") { ... etc.
and worked fine, what are now these errors "Invalid method" at the api route level? error 405