You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/index.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -542,18 +542,16 @@ createServer()
542
542
543
543
### server.fs.strict
544
544
545
-
-**Experimental**
546
545
-**Type:**`boolean`
547
-
-**Default:**`false` (will change to `true` in future versions)
546
+
-**Default:**`true` (enabled by default since Vite 2.7)
548
547
549
548
Restrict serving files outside of workspace root.
550
549
551
550
### server.fs.allow
552
551
553
-
-**Experimental**
554
552
-**Type:**`string[]`
555
553
556
-
Restrict files that could be served via `/@fs/`. When `server.fs.strict` is set to `true`, accessing files outside this directory list will result in a 403.
554
+
Restrict files that could be served via `/@fs/`. When `server.fs.strict` is set to `true`, accessing files outside this directory list that aren't imported from an allowed file will result in a 403.
557
555
558
556
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).
0 commit comments