Skip to content

Commit f8bf381

Browse files
author
Luca Forstner
committed
bump nextjs
1 parent 165b0ba commit f8bf381

File tree

4 files changed

+257
-98
lines changed

4 files changed

+257
-98
lines changed

apps/changelog/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"@radix-ui/themes": "^2.0.3",
2424
"@sentry/nextjs": "8.34.0",
2525
"@spotlightjs/spotlight": "^2.1.1",
26-
"next": "^15.0.0-canary.83",
26+
"next": "15.0.0-rc.1",
2727
"next-auth": "^4.24.5",
2828
"next-mdx-remote": "^4.4.1",
2929
"nextjs-toploader": "^1.6.6",
3030
"nuqs": "^1.17.7",
3131
"prism-sentry": "^1.0.2",
32-
"react": "beta",
33-
"react-dom": "beta",
32+
"react": "19.0.0-rc-cd22717c-20241013",
33+
"react-dom": "19.0.0-rc-cd22717c-20241013",
3434
"react-select": "^5.7.3",
3535
"react-textarea-autosize": "^8.5.3",
3636
"rehype-prism-plus": "^1.6.3",
@@ -44,8 +44,8 @@
4444
"@tailwindcss/forms": "^0.5.7",
4545
"@tailwindcss/typography": "^0.5.10",
4646
"@types/node": "^20",
47-
"@types/react": "^18",
48-
"@types/react-dom": "^18.3.0",
47+
"@types/react": "npm:[email protected]",
48+
"@types/react-dom": "npm:[email protected]",
4949
"@types/rss": "^0.0.32",
5050
"autoprefixer": "^10.4.17",
5151
"dotenv-cli": "^7.4.2",
@@ -58,5 +58,9 @@
5858
},
5959
"volta": {
6060
"extends": "../../package.json"
61+
},
62+
"resolutions": {
63+
"@types/react": "npm:[email protected]",
64+
"@types/react-dom": "npm:[email protected]"
6165
}
62-
}
66+
}

apps/changelog/src/app/changelog/%5Fadmin/[id]/edit/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import Link from 'next/link';
44
import {prismaClient} from '@/server/prisma-client';
55
import {EditChangelogForm} from '@/client/components/forms/editChangelogForm';
66

7-
export default async function ChangelogCreatePage({params}: {params: {id: string}}) {
7+
export default async function ChangelogCreatePage(props: {
8+
params: Promise<{id: string}>;
9+
}) {
10+
const params = await props.params;
811
const categories = await prismaClient.category.findMany({
912
orderBy: {
1013
name: 'asc',

apps/changelog/src/app/changelog/[slug]/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ import {mdxOptions} from '@/server/mdxOptions';
1616
export const dynamic = 'force-dynamic';
1717

1818
export async function generateMetadata(
19-
{params}: {params: {slug: string}},
19+
props: {params: Promise<{slug: string}>},
2020
parent: ResolvingMetadata
2121
): Promise<Metadata> {
22+
const params = await props.params;
2223
let changelog: Changelog | null = null;
2324
try {
2425
changelog = await getChangelog(params.slug);
@@ -57,7 +58,8 @@ const getChangelog = unstable_cache(
5758
{tags: ['changelog-detail']}
5859
);
5960

60-
export default async function ChangelogEntry({params}: {params: {slug: string}}) {
61+
export default async function ChangelogEntry(props: {params: Promise<{slug: string}>}) {
62+
const params = await props.params;
6163
const changelog = await getChangelog(params.slug);
6264

6365
if (!changelog) {

0 commit comments

Comments
 (0)