From b776315e2788bde9fe4198e5c79353194afded4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdongming=E2=80=9D?= <“lidongming@aituringflow.com”> Date: Sun, 28 Dec 2025 23:29:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BB=9F=E4=B8=80=E4=B8=BA3000=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- package.json | 2 ++ vite.config.ts | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2a7125f..e6fbd1b 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,6 @@ dist-ssr .claude docs -.pnpm-store \ No newline at end of file +.pnpm-store +pnpm-lock.yaml +package-lock.json \ No newline at end of file diff --git a/package.json b/package.json index d0923c1..66a03f4 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,12 @@ "@eslint/js": "^9.39.1", "@tailwindcss/postcss": "^4.1.18", "@tailwindcss/typography": "^0.5.19", + "@tailwindcss/vite": "^4.1.18", "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.1.1", + "@vitejs/plugin-react-swc": "^4.2.2", "autoprefixer": "^10.4.23", "eslint": "^9.39.1", "eslint-plugin-react-hooks": "^7.0.1", diff --git a/vite.config.ts b/vite.config.ts index 5e4b32b..97091ad 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,8 +6,8 @@ import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [react(), tailwindcss()], server: { + host: '0.0.0.0', port: 3000, - allowedHosts: true, - host: "0.0.0.0" + allowedHosts: true }, });