chore: update dev script to allow Vite to bind to all network interfaces
This commit is contained in:
@ -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",
|
||||
|
@ -24,6 +24,7 @@ export default defineConfig(({ mode, command }) => {
|
||||
},
|
||||
server: {
|
||||
proxy: createViteProxy(),
|
||||
allowedHosts: ['.nwct.dev'],
|
||||
},
|
||||
build: {
|
||||
minify: 'terser',
|
||||
|
Reference in New Issue
Block a user