Harden Vite fs deny for local logs and cache

This commit is contained in:
blowing-a-raspberry committed 2026-10-18 15:02:13 -05:00
1 parent 93ea088f45
commit 2379d20616
1 file changed
+10 -1
+10 -1
View File
@@ -94,7 +94,16 @@ export function createBrowserViteConfig({
// build/allowedHosts.js); IP addresses are always accepted.
allowedHosts: [...allowedHosts],
fs: {
deny: ['.env', '.env.*', '*.{crt,pem}', '**/.git/**', '**/ENVIRONMENT'],
deny: [
'.env',
'.env.*',
'*.{crt,pem}',
'**/.git/**',
'**/ENVIRONMENT',
'**/.gev-logs/**',
'**/.gev-cache/**',
'**/dist/**',
],
},
// These headers protect the document containing Provider Settings and
// give the whole page a real Content-Security-Policy (BROWSER_CSP).