fix:统一为3000端口

This commit is contained in:
“dongming”
2025-12-28 23:29:17 +08:00
parent ed40350aeb
commit b776315e27
3 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@@ -32,3 +32,5 @@ dist-ssr
.claude .claude
docs docs
.pnpm-store .pnpm-store
pnpm-lock.yaml
package-lock.json

View File

@@ -19,10 +19,12 @@
"@eslint/js": "^9.39.1", "@eslint/js": "^9.39.1",
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "^0.5.19", "@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.18",
"@types/node": "^24.10.1", "@types/node": "^24.10.1",
"@types/react": "^19.2.5", "@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1", "@vitejs/plugin-react": "^5.1.1",
"@vitejs/plugin-react-swc": "^4.2.2",
"autoprefixer": "^10.4.23", "autoprefixer": "^10.4.23",
"eslint": "^9.39.1", "eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-hooks": "^7.0.1",

View File

@@ -6,8 +6,8 @@ import tailwindcss from "@tailwindcss/vite";
export default defineConfig({ export default defineConfig({
plugins: [react(), tailwindcss()], plugins: [react(), tailwindcss()],
server: { server: {
host: '0.0.0.0',
port: 3000, port: 3000,
allowedHosts: true, allowedHosts: true
host: "0.0.0.0"
}, },
}); });