style: format standalone configuration and build boundaries

This commit is contained in:
Sameh Khamis committed 2026-09-11 18:08:26 -07:00
1 parent 8de1018c21
commit fb67024f43
9 files changed
+111 -61

No files matched your search

+12 -4
View File
@@ -2,16 +2,24 @@ import cesium from 'vite-plugin-cesium';
/** Build browser assets with explicit inputs; never load environment or providers. */
export function createBrowserViteConfig({
plugins = [], googleApiKey, cesiumToken, host = 'localhost', port = 4173,
plugins = [],
googleApiKey,
cesiumToken,
host = 'localhost',
port = 4173,
} = {}) {
return {
plugins: [cesium(), ...plugins],
server: {
host: host || 'localhost',
port: parseInt(port, 10) || 4173,
allowedHosts: host === '0.0.0.0' || host === '::'
? true : ['localhost', '127.0.0.1', '.local'],
fs: { deny: ['.env', '.env.*', '*.{crt,pem}', '**/.git/**', '**/ENVIRONMENT'] },
allowedHosts:
host === '0.0.0.0' || host === '::'
? true
: ['localhost', '127.0.0.1', '.local'],
fs: {
deny: ['.env', '.env.*', '*.{crt,pem}', '**/.git/**', '**/ENVIRONMENT'],
},
// These headers protect the document containing Provider Settings.
headers: {
'X-Frame-Options': 'DENY',