Skip to content

Commit

Permalink
fix(deps): 🔗 update all dependencies (#18)
Browse files Browse the repository at this point in the history
* fix(deps): 🔗 update all dependencies

* fix: 🐛 await params nextjs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alexander Liu <[email protected]>
  • Loading branch information
renovate[bot] and alexanderl19 authored Dec 22, 2024
1 parent dabcf25 commit 8b79992
Show file tree
Hide file tree
Showing 5 changed files with 1,501 additions and 913 deletions.
10 changes: 5 additions & 5 deletions app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import { notFound } from "next/navigation";
import { source } from "@/app/source";
import { metadataImage } from "@/lib/metadata";

export default async function Page({
params,
}: {
params: { slug?: string[] };
export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);

if (!page) notFound();
Expand Down Expand Up @@ -39,7 +38,8 @@ export async function generateStaticParams() {
return source.generateParams();
}

export function generateMetadata({ params }: { params: { slug?: string[] } }) {
export async function generateMetadata(props: { params: Promise<{ slug?: string[] }> }) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

Expand Down
4 changes: 2 additions & 2 deletions app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { baseOptions } from "../layout.config";
import { source } from "@/app/source";
import { categories } from "@/lib/categories";

export function generateViewport() {
const userAgent = headers().get("user-agent");
export async function generateViewport() {
const userAgent = (await headers()).get("user-agent");

return userAgent?.includes("Discordbot")
? {
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,37 @@
"prepare": "husky"
},
"dependencies": {
"fumadocs-core": "14.4.2",
"fumadocs-mdx": "11.1.1",
"fumadocs-twoslash": "2.0.1",
"fumadocs-ui": "14.4.2",
"lucide-react": "0.447.0",
"next": "14.2.14",
"react": "18.3.1",
"react-dom": "18.3.1"
"fumadocs-core": "14.6.1",
"fumadocs-mdx": "11.1.2",
"fumadocs-twoslash": "2.0.2",
"fumadocs-ui": "14.6.1",
"lucide-react": "0.468.0",
"next": "15.1.1",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"@commitlint/types": "19.5.0",
"@fumadocs/cli": "0.0.3",
"@fumadocs/cli": "0.0.4",
"@opennextjs/cloudflare": "0.2.1",
"@types/mdx": "2.0.13",
"@types/node": "22.7.4",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@types/node": "22.10.2",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"@typescript-eslint/eslint-plugin": "8.18.1",
"autoprefixer": "10.4.20",
"clsx": "2.1.1",
"cz-conventional-changelog": "3.3.0",
"devmoji": "2.3.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"postcss": "8.4.47",
"tailwindcss": "3.4.15",
"typescript": "5.5.4",
"wrangler": "3.80.0"
"husky": "9.1.7",
"lint-staged": "15.2.11",
"postcss": "8.4.49",
"tailwindcss": "3.4.17",
"typescript": "5.7.2",
"wrangler": "3.96.0"
},
"packageManager": "pnpm@9.4.0"
"packageManager": "pnpm@9.15.0"
}
Loading

0 comments on commit 8b79992

Please sign in to comment.