mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
326485c06e
This allows people to manually type their exported `metadata` field: <img width="610" alt="CleanShot 2023-01-31 at 15 43 00@2x" src="https://user-images.githubusercontent.com/3676859/215792182-8d9cf72a-dedf-4cc9-8613-d4eb49501abc.png"> ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) ---------
18 lines
316 B
TypeScript
18 lines
316 B
TypeScript
import React from 'react'
|
|
import Link from 'next/link'
|
|
import type { Metadata } from 'next'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div id="title">
|
|
<Link id="to-index" href="/">
|
|
to index
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'this is the page title',
|
|
}
|