Skip to content

Commit 23c71c6

Browse files
authored
feat: add .git to deny list by default (#1631)
resolve #1628 vitejs/vite@105ca12 の反映です。
1 parent de3e35b commit 23c71c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/server-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default defineConfig({
325325
## server.fs.deny
326326

327327
- **型:** `string[]`
328-
- **デフォルト:** `['.env', '.env.*', '*.{crt,pem}']`
328+
- **デフォルト:** `['.env', '.env.*', '*.{crt,pem}', '**/.git/**']`
329329

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

0 commit comments

Comments
 (0)