Explorar o código

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

Lucas Nogueira %!s(int64=2) %!d(string=hai) anos
pai
achega
626faf9ec1
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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: {