mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 17:34:52 +10:00
fix: resolves #2990, revert the local storage path to /app/data
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user