The desktop app wraps the statically exported Next.js app (Documentation Index
Fetch the complete documentation index at: https://docs.laportenard.com/llms.txt
Use this file to discover all available pages before exploring further.
out/) in a Tauri v2 shell located at nu_pos_react/src-tauri/.
Commands
Run fromnu_pos_react/:
build:standalone first, then launch cargo tauri.
Runtime configuration
The Tauri shell injects config intowindow.__POS_RUNTIME_CONFIG__ at startup:
| Key | Default | Purpose |
|---|---|---|
POS_APP_MODE | standalone | App mode |
POS_API_BASE_URL | “ (empty) | Odoo API base URL |
CSP and network allowlist
The CSP insrc-tauri/tauri.conf.json controls which origins the app can connect to. The current policy uses a bare * wildcard in connect-src to allow connections to any host, including local network hub IPs:
The bare
* is required for Android compatibility. See Tauri Android for details on why scheme-specific wildcards don’t work on Android WebView.Platform prerequisites
- macOS
- Windows
- Linux
- Xcode Command Line Tools:
xcode-select --install - Apple signing identity and notarization credentials for public distribution