fix: resolves #2990, revert the local storage path to /app/data

This commit is contained in:
Amruth Pillai
2026-05-08 11:10:24 +02:00
parent ed42f181ca
commit 9cbb30d3ba
7 changed files with 26 additions and 6 deletions
@@ -0,0 +1,12 @@
import { basename, dirname, join } from "node:path";
export function getLocalDataDirectory(): string {
const cwd = process.cwd();
const parentDirectory = dirname(cwd);
if (basename(cwd) === "web" && basename(parentDirectory) === "apps") {
return join(dirname(parentDirectory), "data");
}
return join(cwd, "data");
}