Skip to content

Commit 3ca0582

Browse files
committed
fix: resolved conflict
1 parent cd7de37 commit 3ca0582

File tree

5 files changed

+14
-72
lines changed

5 files changed

+14
-72
lines changed

config/server-options.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,17 +377,13 @@ export default defineConfig({
377377

378378
用于限制 Vite 开发服务器提供敏感文件的黑名单。这会比 [`server.fs.allow`](#server-fs-allow) 选项的优先级更高。同时还支持 [picomatch 模式](https://github.com/micromatch/picomatch#globbing-features)
379379

380-
<<<<<<< HEAD
381-
## server.origin {#server-origin}
382-
=======
383380
::: tip NOTE
384381

385-
This blocklist does not apply to [the public directory](/guide/assets.md#the-public-directory). All files in the public directory are served without any filtering, since they are copied directly to the output directory during build.
382+
此黑名单不适用于[公共目录](/guide/assets.md#the-public-directory)。公共目录中的所有文件均未经任何过滤,因为它们会在构建过程中直接复制到输出目录。
386383

387384
:::
388385

389-
## server.origin
390-
>>>>>>> 4f0ea491bb5fddc10b60b8a39398b2322cf6b30b
386+
## server.origin {#server-origin}
391387

392388
- **类型:** `string`
393389

guide/env-and-mode.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
Vite 在特殊的 `import.meta.env` 对象下暴露了一些常量。这些常量在开发阶段被定义为全局变量,并在构建阶段被静态替换,以使树摇(tree-shaking)更有效。
44

5-
<<<<<<< HEAD
65
## 内置常量 {#built-in-constants}
7-
=======
8-
## Built-in Constants
9-
>>>>>>> 4f0ea491bb5fddc10b60b8a39398b2322cf6b30b
106

117
一些内置常量在所有情况下都可用:
128

guide/ssr.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ if (import.meta.env.SSR) {
6363
6464
## 设置开发服务器 {#setting-up-the-dev-server}
6565
66-
<<<<<<< HEAD
67-
在构建 SSR 应用程序时,你可能希望完全控制主服务器,并将 Vite 与生产环境脱钩。因此,建议以中间件模式使用 Vite。下面是一个关于 [express](https://expressjs.com/) (v4) 的例子:
68-
=======
69-
When building an SSR app, you likely want to have full control over your main server and decouple Vite from the production environment. It is therefore recommended to use Vite in middleware mode. Here is an example with [express](https://expressjs.com/):
70-
>>>>>>> 4f0ea491bb5fddc10b60b8a39398b2322cf6b30b
66+
在构建 SSR 应用程序时,你可能希望完全控制主服务器,并将 Vite 与生产环境脱钩。因此,建议以中间件模式使用 Vite。下面是一个关于 [express](https://expressjs.com/) 的例子:
7167
7268
```js{15-18} twoslash [server.js]
7369
import fs from 'node:fs'
@@ -97,13 +93,8 @@ async function createServer() {
9793
// 即使在重新启动后,以下内容仍然有效。
9894
app.use(vite.middlewares)
9995

100-
<<<<<<< HEAD
101-
app.use('*', async (req, res) => {
102-
// 服务 index.html - 下面我们来处理这个问题
103-
=======
10496
app.use('*all', async (req, res) => {
105-
// serve index.html - we will tackle this next
106-
>>>>>>> 4f0ea491bb5fddc10b60b8a39398b2322cf6b30b
97+
// 服务 index.html - 下面我们来处理这个问题
10798
})
10899

109100
app.listen(5173)

package.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
<<<<<<< HEAD
32
"name": "vite-docs-cn",
43
"version": "1.0.0",
54
"description": "Vite.js documentation Chinese translation.",
@@ -10,7 +9,7 @@
109
"license": "CC BY-NC-SA 4.0",
1110
"devDependencies": {
1211
"@shikijs/vitepress-twoslash": "^2.5.0",
13-
"@types/express": "^4.17.21",
12+
"@types/express": "^5.0.1",
1413
"feed": "^4.2.2",
1514
"vitepress": "^1.6.3",
1615
"vitepress-plugin-group-icons": "^1.5.2",
@@ -34,23 +33,4 @@
3433
"gitHooks": {
3534
"commit-msg": "node scripts/verifyCommit.js"
3635
}
37-
=======
38-
"name": "docs",
39-
"private": true,
40-
"type": "module",
41-
"scripts": {
42-
"docs": "vitepress dev",
43-
"docs-build": "vitepress build",
44-
"docs-serve": "vitepress serve"
45-
},
46-
"devDependencies": {
47-
"@shikijs/vitepress-twoslash": "^2.5.0",
48-
"@types/express": "^5.0.1",
49-
"feed": "^4.2.2",
50-
"vitepress": "^1.6.3",
51-
"vitepress-plugin-group-icons": "^1.5.2",
52-
"vitepress-plugin-llms": "^1.1.0",
53-
"vue": "^3.5.13"
54-
}
55-
>>>>>>> 4f0ea491bb5fddc10b60b8a39398b2322cf6b30b
5636
}

pnpm-lock.yaml

Lines changed: 9 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)