Skip to content

Commit

Permalink
update next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Oct 17, 2024
1 parent 6a28fbf commit 7902b87
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 186 deletions.
4 changes: 2 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "docs",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint"
Expand All @@ -14,7 +14,7 @@
"codesandbox": "^2.2.3",
"date-fns": "^3.6.0",
"gray-matter": "^4.0.3",
"next": "15.0.0-rc.0",
"next": "rc",
"next-themes": "^0.3.0",
"react": "catalog:",
"react-dom": "catalog:",
Expand Down
6 changes: 4 additions & 2 deletions apps/docs/src/app/(docs)/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type PageProps = {
}
}

export const generateMetadata = ({ params }: PageProps) => {
export const generateMetadata = async (props: PageProps) => {
const params = await props.params;
const { slug } = params
const docs = getDocData(slug)

Expand All @@ -25,7 +26,8 @@ export async function generateStaticParams() {
return slugs
}

export default async function PageLayout({ params }: PageProps) {
export default async function PageLayout(props: PageProps) {
const params = await props.params;
const { slug } = params
const docs = getDocData(slug)

Expand Down
3 changes: 2 additions & 1 deletion apps/docs/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ html {
}

/* dark mode switch transition */
::view-transition-old(root) ::view-transition-new(root) {
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
mix-blend-mode: normal;
}
Expand Down
8 changes: 2 additions & 6 deletions apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import './globals.css'

import { Metadata } from 'next'
import { config } from '@/lib/config'
import { poppins } from './fonts'

export const metadata: Metadata = {
title: {
default: config.metadata.title,
template: '%s | Actify'
},
description: config.metadata.description,
title: 'Actify',
description: 'React Material Design 3 Components Library',
icons: {
icon: '/favicon.ico',
shortcut: '/short-cut-icon.png',
Expand Down
6 changes: 0 additions & 6 deletions apps/docs/src/lib/config.ts

This file was deleted.

Loading

0 comments on commit 7902b87

Please sign in to comment.