Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: head config only takes effect in production mode #1660

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/document/docs/en/api/config/config-basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default defineConfig({
- Type: `string` | `[string, Record<string, string>]` | `(route) => string | [string, Record<string, string>] | undefined`
- Can be appended per page via [frontmatter](./config-frontmatter.mdx#head)

Additional elements to render in the `<head>` tag in the page HTML.
Used to set additional elements rendered in the `<head>` tag of the page's HTML in production mode.

```ts title="rspress.config.ts"
import { defineConfig } from 'rspress/config';
Expand Down
2 changes: 1 addition & 1 deletion packages/document/docs/zh/api/config/config-basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default defineConfig({
- Type: `string` | `[string, Record<string, string>]` | `(route) => string | [string, Record<string, string>] | undefined`
- 也可以通过 [frontmatter](./config-frontmatter.mdx#head) 针对每个页面设置

页面 HTML 的 `<head>` 标签中呈现的附加元素。
用于设置生产模式下页面 HTML 的 `<head>` 标签中呈现的附加元素。

```ts title="rspress.config.ts"
import { defineConfig } from 'rspress/config';
Expand Down
Loading