chore: update dev script to allow Vite to bind to all network interfaces
All checks were successful
/ depcheck (push) Successful in 1m17s
/ build-and-deploy-to-vercel (push) Successful in 1m41s
/ surge (push) Successful in 6m16s
/ playwright (push) Successful in 2m39s

This commit is contained in:
严浩
2025-02-11 18:36:10 +08:00
parent 6a3560a7f8
commit d3548f1105
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite --port 4730",
"dev": "vite --port 4730 --host",
"all": "run-p build-only format type-check lint",
"build": "run-p type-check \"build-only {@}\" --",
"build-only": "vite build",

View File

@ -24,6 +24,7 @@ export default defineConfig(({ mode, command }) => {
},
server: {
proxy: createViteProxy(),
allowedHosts: ['.nwct.dev'],
},
build: {
minify: 'terser',