Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Harden Vite fs deny for local logs and cache

blowing-a-raspberry2379d20616a9
diff --git a/build/vite.js b/build/vite.js
index 4f2703e88..00479572d 100644
--- a/build/vite.js
+++ b/build/vite.js
@@ -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).