ework-web 0.10.14 → 0.10.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.14",
3
+ "version": "0.10.15",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -849,6 +849,10 @@ async function handle(req: Request, url: URL, ip: string, ctx: { authed: boolean
849
849
  ? (payload as { port?: unknown }).port
850
850
  : undefined);
851
851
  const args = ["add-daemon"];
852
+ const dataDir = process.env.WORK_DATA_DIR ?? process.env.AWORK_DATA_DIR;
853
+ if (dataDir) {
854
+ args.push("--data-dir", dataDir);
855
+ }
852
856
  if (typeof port === "number" && Number.isFinite(port) && port > 0 && port < 65536) {
853
857
  args.push(String(Math.trunc(port)));
854
858
  } else if (port !== undefined && port !== null) {