feat: update to react 19 and next.js 15.2

This commit is contained in:
Mathias Schopmans
2025-03-03 17:11:18 +01:00
parent d6b41d0ff3
commit 1687f93055
4 changed files with 637 additions and 223 deletions

844
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,9 +19,9 @@
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"clsx": "^2.1.1",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.4",
@@ -32,12 +32,12 @@
"lint-staged": "^15.4.3",
"marked": "^15.0.7",
"marked-highlight": "^2.2.1",
"next": "14.2.4",
"next": "15.2.0",
"postcss-nested": "^7.0.2",
"postcss-preset-env": "^10.1.5",
"prettier": "^3.5.3",
"react": "^18",
"react-dom": "^18",
"react": "^19",
"react-dom": "^19",
"tsx": "^4.19.3",
"typescript": "^5"
},

View File

@@ -2,6 +2,9 @@ import { MetadataRoute } from "next";
import { getAbsoluteUrl, getItems, getQuadrants } from "@/lib/data";
export const dynamic = "force-static";
export const revalidate = 60;
export default function sitemap(): MetadataRoute.Sitemap {
const quadrants = getQuadrants().map((quadrant) => ({
url: getAbsoluteUrl(`/${quadrant.id}/`),

View File

@@ -1,5 +1,6 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,