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) {
+1 -1
View File
@@ -30,7 +30,7 @@
"@wojtekmaj/react-daterange-picker": "^3.3.1",
"class-variance-authority": "^0.4.0",
"downshift": "^6.1.9",
"next": "^13.2.1",
"next": "^13.4.6",
"react": "^18.2.0",
"react-colorful": "^5.6.0",
"react-feather": "^2.0.10",