Skip to main content

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.

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/:
npm run desktop:dev     # Build + launch Tauri dev window
npm run desktop:build   # Build + package Tauri desktop app
Both commands run build:standalone first, then launch cargo tauri.

Runtime configuration

The Tauri shell injects config into window.__POS_RUNTIME_CONFIG__ at startup:
KeyDefaultPurpose
POS_APP_MODEstandaloneApp mode
POS_API_BASE_URL“ (empty)Odoo API base URL
Pass values via environment variables:
POS_APP_MODE=standalone \
POS_API_BASE_URL=https://odoo.example.com \
npm run desktop:build
Or via startup args:
--pos-app-mode=standalone
--pos-api-base-url=https://odoo.example.com

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:
connect-src 'self' https://ipc.localhost *
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.