Archived
chore: update dev script to allow Vite to bind to all network interfaces
This commit is contained in:
1 parent
6a3560a7f8
commit
d3548f1105
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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