This commit is contained in:
2026-03-31 11:10:36 +08:00
parent 9cd3564443
commit 74332e8f30
2 changed files with 40 additions and 35 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite --host :: --port 5173",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview" "preview": "vite preview"
+5
View File
@@ -3,5 +3,10 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
server: {
allowedHosts: [
'*'
],
},
plugins: [react()], plugins: [react()],
}) })