Skip to content

Commit

Permalink
import type { Metadata } from 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle authored Jul 6, 2023
1 parent ca03a06 commit 476f2dc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const metadata = {
`title.default` can be used to provide a **fallback title** to child route segments that don't define a `title`.

```tsx filename="app/layout.tsx"
import { Metadata } from 'next'
import type { Metadata } from 'next'

export const metadata: Metadata = {
title: {
Expand All @@ -202,7 +202,7 @@ export const metadata: Metadata = {
```

```tsx filename="app/about/page.tsx"
import { Metadata } from 'next'
import type { Metadata } from 'next'

export const metadata: Metadata = {}

Expand All @@ -225,7 +225,7 @@ export const metadata: Metadata = {
```

```jsx filename="app/layout.js" switcher
import { Metadata } from 'next'
import type { Metadata } from 'next'

export const metadata = {
title: {
Expand Down Expand Up @@ -522,7 +522,7 @@ export const metadata = {
### `robots`

```tsx
import { Metadata } from 'next'
import type { Metadata } from 'next'

export const metadata: Metadata = {
robots: {
Expand Down

0 comments on commit 476f2dc

Please sign in to comment.