Skip to main content
The desktop app wraps the statically exported Next.js app (out/) in a Tauri v2 shell located at nu_pos_react/src-tauri/.

Commands

Run from nu_pos_react/:
Both commands run build:standalone first, then launch cargo tauri.

Runtime configuration

The Tauri shell injects config into window.__POS_RUNTIME_CONFIG__ at startup: Pass values via environment variables:
Or via startup args:

CSP and network allowlist

The CSP in src-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

  • Xcode Command Line Tools: xcode-select --install
  • Apple signing identity and notarization credentials for public distribution

Update strategy

The app checks for updates on launch via the Tauri updater plugin. See Auto-updates for the full update system documentation.