chore: ignore .codegraph index and allow LAN access for vite dev server
- .gitignore 增加 .codegraph/(本地代码索引,不进版本库) - vite dev server 开启 host,便于局域网访问本地前端
This commit is contained in:
@@ -3,4 +3,5 @@ web/node_modules/
|
||||
web/test-results/
|
||||
.env
|
||||
.dev-credentials/
|
||||
.codegraph/
|
||||
tmp/
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user