Skip to content

Commit

Permalink
Attempt porting to Next 15 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Oct 21, 2024
1 parent d86adfc commit 427ff5c
Show file tree
Hide file tree
Showing 8 changed files with 507 additions and 682 deletions.
1,157 changes: 490 additions & 667 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@mantine/charts": "^7.13.3",
"@mantine/core": "7.13.3",
"@mantine/hooks": "7.13.3",
"@next/bundle-analyzer": "^14.2.15",
"@next/bundle-analyzer": "15.0.0-rc.1",
"@tabler/icons-react": "^3.19.0",
"next": "14.2.15",
"next": "15.0.0-rc.1",
"node-html-parser": "^6.1.13",
"react": "^18",
"react-device-detect": "^2.2.3",
Expand All @@ -31,7 +31,7 @@
"@typescript-eslint/parser": "^8.10.0",
"d3": "^7.9.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.15",
"eslint-config-next": "15.0.0-rc.1",
"eslint-config-prettier": "^9.1.0",
"feed": "^4.2.2",
"gray-matter": "^4.0.3",
Expand Down
10 changes: 5 additions & 5 deletions src/app/blog/[year]/[month]/[day]/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { Container } from "@mantine/core";
import { BlogPost } from "@/app/blog/post";
import { Metadata } from "next";

export async function generateMetadata({
params,
}: {
params: PostPath;
export async function generateMetadata(props: {
params: Promise<PostPath>;
}): Promise<Metadata> {
const params = await props.params;
const post = getPostData(
`${params.year}-${params.month}-${params.day}-${params.slug}.markdown`,
);
Expand All @@ -28,7 +27,8 @@ export async function generateMetadata({
};
}

export default function Page({ params }: { params: PostPath }) {
export default async function Page(props: { params: Promise<PostPath> }) {
const params = await props.params;
const post = getPostData(
`${params.year}-${params.month}-${params.day}-${params.slug}.markdown`,
);
Expand Down
2 changes: 2 additions & 0 deletions src/app/compatibility/avm2/tree.svg/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,5 @@ export async function GET() {
},
});
}

export const revalidate = false;
1 change: 1 addition & 0 deletions src/app/compatibility/weekly_contributions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client";

import { BarChart } from "@mantine/charts";
import { Paper, Text } from "@mantine/core";
import classes from "./weekly_contributions.module.css";
Expand Down
3 changes: 2 additions & 1 deletion src/app/downloads/nightlies.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client"; // tables in mantine don't seem to work on server...
"use client";
// tables in mantine don't seem to work on server...

import {
Button,
Expand Down
2 changes: 2 additions & 0 deletions src/app/feed.xml/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ export async function GET() {
},
});
}

export const revalidate = false;
8 changes: 2 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ import { IconCheck } from "@tabler/icons-react";
import React from "react";
import { getLatestReleases } from "@/app/downloads/github";

const InteractiveLogo = dynamic(() => import("../components/logo"), {
ssr: false,
});
const InteractiveLogo = dynamic(() => import("../components/logo"));

const Installers = dynamic(() => import("./installers"), {
ssr: false,
});
const Installers = dynamic(() => import("./installers"));

export default async function Home() {
const releases = await getLatestReleases();
Expand Down

0 comments on commit 427ff5c

Please sign in to comment.