Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
docs: update
  • Loading branch information
antfu committed May 4, 2021
commit f9141dd0592cc5948f1f8fcb1e7bf9e8c5c73b04
7 changes: 6 additions & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,12 @@ export default async ({ command, mode }) => {

Restrict files that could be served via `/@fs/`. Accessing files outside this directory will result in a 403.

Default to [project root](/guide/#index-html-and-project-root).
Vite will search for the root of the potential workspace and use it as default. A valid workspace met the following conditions, otherwise will fallback to the [project root](/guide/#index-html-and-project-root).
- contains `workspaces` field in `package.json`
- contains one of the following directory/file
- `.git`
- `pnpm-workspace.yaml`
- should not be more than 5 levels up than the [project root](/guide/#index-html-and-project-root).

## Build Options

Expand Down