Skip to content

Commit 3423891

Browse files
authored
feat: improve server doc (#7175)
1 parent 56f5be3 commit 3423891

File tree

14 files changed

+426
-543
lines changed

14 files changed

+426
-543
lines changed

packages/document/main-doc/docs/en/apis/app/hooks/server/server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ sidebar_position: 1
55

66
# modern.server.[tj]s
77

8-
This file extends the Modern.js Server. In this file, you can configure [Middleware](/guides/advanced-features/custom-server.html#middleware), [RenderMiddleware](/guides/advanced-features/custom-server.html#rendermiddleware), or [Plugin](/guides/advanced-features/custom-server.html#plugin) for the Server that starts with the Modern.js project.
8+
This file extends the Modern.js Server. In this file, you can configure [Middleware](/guides/advanced-features/web-server.html#middleware), [RenderMiddleware](/guides/advanced-features/web-server.html#rendermiddleware), or [Plugin](/guides/advanced-features/web-server.html#plugin) for the Server that starts with the Modern.js project.
99

1010
You can intercept and handle requests and responses, perform authentication and role checks, preprocess requests, and handle exceptions, etc. You can also insert specific business logic into the built-in processing logic (including route matching, resource addressing, header injection, page rendering, and static web hosting).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Modern.js Server and BFF use [Hono.js](https://hono.dev/) as the runtime framework, and you can extend the Server based on the Hono.js ecosystem. Please refer to [Custom Server](/guides/advanced-features/custom-server.html).
1+
Modern.js Server and BFF use [Hono.js](https://hono.dev/) as the runtime framework, and you can extend the Server based on the Hono.js ecosystem. Please refer to [Custom Web Server](/guides/advanced-features/web-server.html).

packages/document/main-doc/docs/en/configure/app/bff/enable-handle-web.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/document/main-doc/docs/en/guides/advanced-features/_meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@
2323
"label": "server-monitor",
2424
"collapsed": true
2525
},
26-
"custom-server",
2726
"web-server"
2827
]

packages/document/main-doc/docs/en/guides/advanced-features/bff/extend-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In some applications, developers may want to handle all BFF functions uniformly, such as authentication, logging, data processing, etc.
44

5-
Modern.js allows users to freely extend the BFF Server through the [Custom Server](/guides/advanced-features/custom-server.html) method.
5+
Modern.js allows users to freely extend the BFF Server through [Middleware](/guides/advanced-features/web-server.html#middleware) method.
66

77
## Using Middleware
88

packages/document/main-doc/docs/en/guides/advanced-features/custom-server.mdx

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)