From 61543a4a6131492f47aac90ff7a416d764b636c4 Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 2 Sep 2026 17:11:52 +0800 Subject: [PATCH] chore: ignore .codegraph index and allow LAN access for vite dev server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .gitignore 增加 .codegraph/(本地代码索引,不进版本库) - vite dev server 开启 host,便于局域网访问本地前端 --- .gitignore | 1 + web/vite.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7b77a71..e040353 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ web/node_modules/ web/test-results/ .env .dev-credentials/ +.codegraph/ tmp/ diff --git a/web/vite.config.js b/web/vite.config.js index 036869b..aed24d5 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -5,6 +5,7 @@ import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [react(), tailwindcss()], server: { + host: true, port: 5173, strictPort: true, proxy: { "/api": "http://127.0.0.1:8082" },