Skip to content

Commit 64bb20b

Browse files
committed
Attempt porting to Next 15 RC
1 parent d86adfc commit 64bb20b

File tree

9 files changed

+512
-685
lines changed

9 files changed

+512
-685
lines changed

package-lock.json

Lines changed: 490 additions & 667 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"@mantine/charts": "^7.13.3",
1313
"@mantine/core": "7.13.3",
1414
"@mantine/hooks": "7.13.3",
15-
"@next/bundle-analyzer": "^14.2.15",
15+
"@next/bundle-analyzer": "15.0.0-rc.1",
1616
"@tabler/icons-react": "^3.19.0",
17-
"next": "14.2.15",
17+
"next": "15.0.0-rc.1",
1818
"node-html-parser": "^6.1.13",
1919
"react": "^18",
2020
"react-device-detect": "^2.2.3",
@@ -31,7 +31,7 @@
3131
"@typescript-eslint/parser": "^8.10.0",
3232
"d3": "^7.9.0",
3333
"eslint": "^8.57.0",
34-
"eslint-config-next": "14.2.15",
34+
"eslint-config-next": "15.0.0-rc.1",
3535
"eslint-config-prettier": "^9.1.0",
3636
"feed": "^4.2.2",
3737
"gray-matter": "^4.0.3",

src/app/blog/[year]/[month]/[day]/[slug]/page.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { Container } from "@mantine/core";
33
import { BlogPost } from "@/app/blog/post";
44
import { Metadata } from "next";
55

6-
export async function generateMetadata({
7-
params,
8-
}: {
9-
params: PostPath;
10-
}): Promise<Metadata> {
6+
export async function generateMetadata(
7+
props: {
8+
params: Promise<PostPath>;
9+
}
10+
): Promise<Metadata> {
11+
const params = await props.params;
1112
const post = getPostData(
1213
`${params.year}-${params.month}-${params.day}-${params.slug}.markdown`,
1314
);
@@ -28,7 +29,8 @@ export async function generateMetadata({
2829
};
2930
}
3031

31-
export default function Page({ params }: { params: PostPath }) {
32+
export default async function Page(props: { params: Promise<PostPath> }) {
33+
const params = await props.params;
3234
const post = getPostData(
3335
`${params.year}-${params.month}-${params.day}-${params.slug}.markdown`,
3436
);

src/app/compatibility/avm2/class_box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use client";
1+
"use client"
22

33
import { useDisclosure } from "@mantine/hooks";
44
import {

src/app/compatibility/avm2/tree.svg/route.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,5 @@ export async function GET() {
222222
},
223223
});
224224
}
225+
226+
export const revalidate = false;

src/app/compatibility/weekly_contributions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use client";
1+
"use client"
2+
23
import { BarChart } from "@mantine/charts";
34
import { Paper, Text } from "@mantine/core";
45
import classes from "./weekly_contributions.module.css";

src/app/downloads/nightlies.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"use client"; // tables in mantine don't seem to work on server...
1+
"use client"
2+
// tables in mantine don't seem to work on server...
23

34
import {
45
Button,

src/app/feed.xml/route.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ export async function GET() {
3434
},
3535
});
3636
}
37+
38+
export const revalidate = false;

src/app/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ import { IconCheck } from "@tabler/icons-react";
1414
import React from "react";
1515
import { getLatestReleases } from "@/app/downloads/github";
1616

17-
const InteractiveLogo = dynamic(() => import("../components/logo"), {
18-
ssr: false,
19-
});
17+
const InteractiveLogo = dynamic(() => import("../components/logo"));
2018

21-
const Installers = dynamic(() => import("./installers"), {
22-
ssr: false,
23-
});
19+
const Installers = dynamic(() => import("./installers"));
2420

2521
export default async function Home() {
2622
const releases = await getLatestReleases();

0 commit comments

Comments
 (0)