mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
chore(examples): move API dev server config from CLI to vite.config.js
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"build": {
|
||||
"distDir": "../dist",
|
||||
"devPath": "http://localhost:5173",
|
||||
"beforeDevCommand": "yarn dev --host",
|
||||
"beforeDevCommand": "yarn dev",
|
||||
"beforeBuildCommand": "yarn build"
|
||||
},
|
||||
"package": {
|
||||
|
||||
@@ -18,6 +18,7 @@ export default defineConfig(async ({ command, mode }) => {
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
hmr: {
|
||||
|
||||
Reference in New Issue
Block a user