fix(ui): swap native key prompt for a dialog; add favicon

This commit is contained in:
2026-11-23 03:18:43 +00:00
parent 5420480ef8
commit c022824d2b
5 changed files with 67 additions and 8 deletions
+3
View File
@@ -5,6 +5,7 @@ import { themeBootScript } from '@perfect-design/ui/stores/theme-boot'
// Get backend URL from environment or use default
const BACKEND_URL = process.env.VITE_BACKEND_URL || 'http://localhost:8080'
const WS_ORIGIN = process.env.VITE_WS_ORIGIN
const FRONTEND_PORT = parseInt(process.env.VITE_PORT || '5173')
// Applies the saved colour mode before first paint so a dark system never flashes light.
@@ -33,6 +34,8 @@ export default defineConfig({
target: BACKEND_URL.replace('http', 'ws'),
ws: true,
changeOrigin: true,
// A backend with an origin allowlist refuses the dev server origin; set this to an allowed one.
...(WS_ORIGIN ? { headers: { Origin: WS_ORIGIN } } : {}),
},
},
},