소스 검색

Allow all hosts for Vite dev server

Enables access via hostnames like dwg.local on local network

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 10 달 전
부모
커밋
28c16f91b7
1개의 변경된 파일과 1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      frontend/vite.config.ts

+ 1 - 0
frontend/vite.config.ts

@@ -12,6 +12,7 @@ export default defineConfig({
   },
   server: {
     port: parseInt(process.env.PORT || '5173'),
+    allowedHosts: true, // Allow all hosts for local network development
     proxy: {
       // WebSocket endpoints
       '/ws': {