Skip to content

Commit c500add

Browse files
committed
fix: fix promise error and fix deprecated error
1 parent 7e9acff commit c500add

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

app/docs/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function generateStaticParams() {
4444
}
4545

4646
export async function generateMetadata({ params }: Param): Promise<Metadata> {
47-
const { slug } = await params;
47+
const { slug } = params;
4848
const page = source.getPage(slug);
4949
if (page == null) {
5050
notFound();

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
"tailwind-merge": "^3.3.1"
3030
},
3131
"devDependencies": {
32+
"@eslint/eslintrc": "^3.2.0",
33+
"@eslint/js": "^9.35.0",
34+
"@next/eslint-plugin-next": "^15.5.3",
3235
"@tailwindcss/postcss": "^4.1.13",
3336
"@types/node": "latest",
3437
"@types/react": "^19.1.12",
3538
"@types/react-dom": "^19.1.9",
36-
"autoprefixer": "^10.4.21",
37-
"@eslint/eslintrc": "^3.2.0",
38-
"@eslint/js": "^9.35.0",
39-
"@next/eslint-plugin-next": "^15.5.3",
4039
"@typescript-eslint/eslint-plugin": "^8.18.2",
4140
"@typescript-eslint/parser": "^8.18.2",
41+
"autoprefixer": "^10.4.21",
4242
"eslint": "^9.35.0",
4343
"eslint-config-next": "^15.5.3",
4444
"husky": "^9.1.7",
4545
"lint-staged": "^15.2.10",
46-
"prettier": "^3.4.2",
4746
"postcss": "^8.5.6",
47+
"prettier": "^3.4.2",
4848
"tailwindcss": "^4.1.13",
4949
"tw-animate-css": "^1.3.8",
5050
"typescript": "^5.6.3"

0 commit comments

Comments
 (0)