Skip to main content

resolve_web_root

Function resolve_web_root 

Source
pub fn resolve_web_root() -> Result<PathBuf, ServerError>
Expand description

Locate a complete workbench build (index.html present) from, in order:

  1. the SEATTRELLIS_WEB_STATIC env var,
  2. the launch working directory (clients/web/dist, including app and Tauri-shell relative forms),
  3. the workbench embedded at build time,
  4. the compile-time path baked into the binary (a development fallback).