chore: update dev script to allow Vite to bind to all network interfaces
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --port 4730",
|
"dev": "vite --port 4730 --host",
|
||||||
"all": "run-p build-only format type-check lint",
|
"all": "run-p build-only format type-check lint",
|
||||||
"build": "run-p type-check \"build-only {@}\" --",
|
"build": "run-p type-check \"build-only {@}\" --",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
|
@ -24,6 +24,7 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
proxy: createViteProxy(),
|
proxy: createViteProxy(),
|
||||||
|
allowedHosts: ['.nwct.dev'],
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
minify: 'terser',
|
minify: 'terser',
|
||||||
|
Reference in New Issue
Block a user