diff --git a/AGENTS.md b/AGENTS.md index 025fb6a..5519c43 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -99,7 +99,7 @@ Do not manually edit generated output or installed dependencies: - Run linting: `npm run lint` - Run Tauri CLI commands: `npm run tauri -- ` -Tauri development intentionally uses port `8103`. `src-tauri/tauri.conf.json` expects that port, so its `beforeDevCommand` must start Ionic on `8103`; the current `npm start` script does not explicitly select it. Verify the full `npm run tauri dev` flow before claiming it works. +Tauri development intentionally uses port `8103`. `src-tauri/tauri.conf.json` expects that port, so its `beforeDevCommand` starts the project's Angular CLI with `serve --host=0.0.0.0 --port=8103`. Keep the command aligned with `devUrl`. Verify the full `npm run tauri dev` flow before claiming it works. ## Release versioning diff --git a/docs/development.md b/docs/development.md index b9dedce..b11e53b 100644 --- a/docs/development.md +++ b/docs/development.md @@ -137,7 +137,7 @@ nvm use lts/jod && npm run tauri dev nvm use lts/jod && npm run tauri build ``` -Tauri development intentionally expects the frontend at `http://localhost:8103`. `devUrl` only tells Tauri where to connect; the Ionic command must also listen on port `8103`. The current `npm start` script does not explicitly select that port, so verify the complete development flow when changing Tauri or serve configuration. +Tauri development intentionally expects the frontend at `http://localhost:8103`. `devUrl` tells Tauri where to connect, and `beforeDevCommand` runs `npm run ng -- serve --host=0.0.0.0 --port=8103` to serve the frontend on the matching port without opening a browser. This uses the project's Angular CLI and does not require a global Ionic CLI installation. Keep these settings aligned when changing Tauri or serve configuration. The desktop wrapper is under `src-tauri/`. Do not edit generated `src-tauri/target/` or `src-tauri/gen/` content. diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 03bf346..01d5ebd 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ "build": { "frontendDist": "../www", "devUrl": "http://localhost:8103", - "beforeDevCommand": "npm start", + "beforeDevCommand": "npm run ng -- serve --host=0.0.0.0 --port=8103", "beforeBuildCommand": "ionic build" }, "app": {