Skip to content

Commit 8445413

Browse files
docs(cn): fix config different from en website
2 parents bb49887 + 831c4fb commit 8445413

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,12 @@ createServer()
498498

499499
限制为工作区 root 路径以外的文件的访问。
500500

501-
### server.fsServe.root {#server-fsserve-root}
501+
### server.fs.allow {#server-fs-allow}
502502

503503
- **实验性**
504-
- **类型:** `string`
504+
- **类型:** `string[]`
505505

506-
限制哪些文件可以通过 `/@fs/` 路径提供服务。当 `server.fsServe.strict` 设置为 true 时,访问这个目录列表外的文件将会返回 403 结果。
506+
限制哪些文件可以通过 `/@fs/` 路径提供服务。当 `server.fs.strict` 设置为 true 时,访问这个目录列表外的文件将会返回 403 结果。
507507

508508
Vite 将会搜索此根目录下潜在工作空间并作默认使用。一个有效的工作空间应符合以下几个条件,否则会默认以 [项目 root 目录](/guide/#index-html-and-project-root) 作备选方案。
509509

0 commit comments

Comments
 (0)