chore: Upgrades Next.js to 13.4.6 (#9578)

* Upgrades Next.js to 13.4.6

* API handlers no longer receive a payload with req.method=DELETE

* Use DELETE with query params in Calendar Switch component

---------

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
Co-authored-by: Efraín Rochín <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-06-19 14:22:30 -07:00
1 parent 3a800f7511
commit 4323b0c2d1
9 files changed
+110 -296

No files matched your search

@@ -47,12 +47,11 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => {
throw new Error("Something went wrong");
}
} else {
const res = await fetch("/api/availability/calendar", {
const res = await fetch("/api/availability/calendar?" + new URLSearchParams(body), {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!res.ok) {