Browse Source

chore(examples): move API dev server config from CLI to vite.config.js

Lucas Nogueira 2 years ago
parent
commit
626faf9ec1
2 changed files with 2 additions and 1 deletions
  1. 1 1
      examples/api/src-tauri/tauri.conf.json
  2. 1 0
      examples/api/vite.config.js

+ 1 - 1
examples/api/src-tauri/tauri.conf.json

@@ -3,7 +3,7 @@
   "build": {
     "distDir": "../dist",
     "devPath": "http://localhost:5173",
-    "beforeDevCommand": "yarn dev --host",
+    "beforeDevCommand": "yarn dev",
     "beforeBuildCommand": "yarn build"
   },
   "package": {

+ 1 - 0
examples/api/vite.config.js

@@ -18,6 +18,7 @@ export default defineConfig(async ({ command, mode }) => {
       }
     },
     server: {
+      host: '0.0.0.0',
       port: 5173,
       strictPort: true,
       hmr: {