diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 38c6756f700d2d..581d0efde2b99c 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -214,7 +214,7 @@ export interface FileSystemServeOptions { * This will have higher priority than `allow`. * picomatch patterns are supported. * - * @default ['.env', '.env.*', '*.crt', '*.pem'] + * @default ['.env', '.env.*', '*.{crt,pem}', '**\/.git/**'] */ deny?: string[]