Skip to content

Commit fe501a2

Browse files
author
Miriad
committed
Merge phase0/nextjs-16 (resolved conflicts)
2 parents 9712dac + d9406e4 commit fe501a2

File tree

4 files changed

+13
-26
lines changed

4 files changed

+13
-26
lines changed

.eslintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/(main)/(course)/course/[courseSlug]/lesson/[lessonSlug]/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ export async function generateMetadata(
2626
{ params }: { params: Params },
2727
parent: ResolvingMetadata,
2828
): Promise<Metadata> {
29+
const resolvedParams = await params;
2930
const lesson = (
3031
await sanityFetch({
3132
query: lessonQuery,
32-
params,
33+
params: resolvedParams,
3334
stega: false,
3435
})
3536
).data as LessonQueryResult;
@@ -50,10 +51,11 @@ export async function generateMetadata(
5051
}
5152

5253
export default async function LessonPage({ params }: { params: Params }) {
54+
const resolvedParams = await params;
5355
const [lesson, course] = (
5456
await Promise.all([
55-
sanityFetch({ query: lessonQuery, params }),
56-
sanityFetch({ query: lessonsInCourseQuery, params }),
57+
sanityFetch({ query: lessonQuery, params: resolvedParams }),
58+
sanityFetch({ query: lessonsInCourseQuery, params: resolvedParams }),
5759
])
5860
).map((res) => res.data) as [
5961
LessonQueryResult,

next.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dev": "next dev --turbo",
55
"build": "next build",
66
"start": "next start",
7-
"lint": "next lint",
7+
"lint": "biome check .",
88
"predev": "npm run typegen",
99
"prebuild": "npm run typegen",
1010
"typegen": "sanity schema extract --path=./sanity/extract.json && sanity typegen generate",
@@ -71,8 +71,8 @@
7171
"jwt-decode": "^4.0.0",
7272
"lucide-react": "^0.576.0",
7373
"micromark": "^4.0.2",
74-
"next": "^15.5.3",
75-
"next-cloudinary": "^6.16.0",
74+
"next": "^16.1.6",
75+
"next-cloudinary": "^6.17.5",
7676
"next-sanity": "^12.1.0",
7777
"next-themes": "^0.4.6",
7878
"nextjs-toploader": "^3.9.17",
@@ -106,21 +106,23 @@
106106
},
107107
"devDependencies": {
108108
"@biomejs/biome": "2.2.4",
109-
"@eslint/eslintrc": "^3.3.1",
110109
"@playwright/test": "^1.51.1",
111110
"@tailwindcss/postcss": "^4.2.1",
112111
"@tailwindcss/typography": "^0.5.19",
113112
"@types/node": "^24.3.1",
114113
"@types/react": "^19.1.12",
115114
"@types/react-dom": "^19.1.9",
116115
"@types/react-syntax-highlighter": "^15.5.13",
117-
"eslint": "^9.35.0",
118-
"eslint-config-next": "15.5.3",
119116
"postcss": "^8",
120117
"tailwindcss": "^4.2.1",
121118
"typescript": "^5"
122119
},
123120
"pnpm": {
121+
"onlyBuiltDependencies": [
122+
"esbuild",
123+
"sharp",
124+
"unrs-resolver"
125+
],
124126
"peerDependencyRules": {
125127
"allowAny": [
126128
"react",

0 commit comments

Comments
 (0)