@@ -15,13 +15,14 @@ Set local source-run values in `app/.env.local` or in the environment that launc
1515
1616## Runtime and resource paths
1717
18- | Variable | Development default | Purpose |
19- | ------------------------ | ---------------------------------------- | ---------------------------------------------------------------- |
20- | ` DATABASE_URL ` | Active project database | Bypass project selection and connect directly to one SQLite file |
21- | ` PYOPS_RESOURCE_DIR ` | Current ` app/ ` working directory | Root for read-only resources bundled with the server |
22- | ` PYOPS_MIGRATIONS_DIR ` | ` <resource-dir>/drizzle ` | Override the Drizzle migration directory |
23- | ` PYOPS_MOD_DIR ` | ` ../mod ` from the resource directory | Override the Companion mod source installed by Settings |
24- | ` FACTORIO_SCRIPT_OUTPUT ` | Platform Factorio ` script-output ` folder | Override where Assistant screenshot tools read Factorio captures |
18+ | Variable | Development default | Purpose |
19+ | -------------------------------- | ---------------------------------------- | ---------------------------------------------------------------- |
20+ | ` DATABASE_URL ` | Active project database | Bypass project selection and connect directly to one SQLite file |
21+ | ` PYOPS_RESOURCE_DIR ` | Current ` app/ ` working directory | Root for read-only resources bundled with the server |
22+ | ` PYOPS_MIGRATIONS_DIR ` | ` <resource-dir>/drizzle ` | Override the Drizzle migration directory |
23+ | ` PYOPS_MOD_DIR ` | ` ../mod ` from the resource directory | Override the Companion mod source installed by Settings |
24+ | ` FACTORIO_SCRIPT_OUTPUT ` | Platform Factorio ` script-output ` folder | Override where Assistant screenshot tools read Factorio captures |
25+ | ` VITE_PYOPS_NATIVE_CONTEXT_MENU ` | ` false ` | Set to ` true ` to restore the browser context menu for debugging |
2526
2627` PYOPS_DATA_DIR ` is the writable root. ` PYOPS_RESOURCE_DIR ` is the read-only bundle root.
2728Keep that boundary intact: packaged resources may not be writable, while project databases,
@@ -31,6 +32,11 @@ The Tauri launcher sets the data, migration, and mod paths for the packaged app.
3132code should import the resolved constants from ` app/src/server/paths.server.ts ` rather than
3233joining new paths from ` process.cwd() ` .
3334
35+ PyOps suppresses the platform browser/WebView context menu by default so ` vp dev ` matches
36+ the desktop shell and only application-owned right-click menus appear. Set
37+ ` VITE_PYOPS_NATIVE_CONTEXT_MENU=true ` in ` app/.env.local ` and restart the development server
38+ when browser inspection requires the native menu.
39+
3440::: warning Direct database mode bypasses projects
3541When ` DATABASE_URL ` is set, the database layer uses that file instead of the project
3642selected in ` app-config.json ` . Use ` PYOPS_DATA_DIR ` when you need an isolated but otherwise
0 commit comments