Skip to content

Commit

Permalink
fix: opt-in server.fs.cachedChecks (#1516)
Browse files Browse the repository at this point in the history
resolve #1514

vitejs/vite@4de659c の反映です。
  • Loading branch information
shuuji3 authored Aug 3, 2024
1 parent 69dfc5d commit c7b5653
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/server-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ export default defineConfig({

Vite 開発サーバーでの配信が制限されている機密ファイルのブロックリスト。これは [`server.fs.allow`](#server-fs-allow) よりも優先度が高くなります。[picomatch パターン](https://github.com/micromatch/picomatch#globbing-features)がサポートされています。

## server.fs.cachedChecks

- **型:** `boolean`
- **デフォルト:** `false`
- **実験的機能**

繰り返しのファイルシステム操作を避けるため、アクセスされたディレクトリーのファイル名をキャッシュします。特に Windows では、これにより性能が向上する可能性があります。キャッシュされたフォルダーにファイルを書き込んですぐにインポートするというエッジケースがあるため、デフォルトでは無効になっています。

## server.origin

- **型:** `string`
Expand Down

0 comments on commit c7b5653

Please sign in to comment.