feat: allow custom user data directory via DATA_DIR environment variable
This commit is contained in:
1 parent
4cf25dc53d
commit
d83bd86816
2 files changed
+4
No files matched your search
@@ -26,6 +26,8 @@ function getAppName() {
|
||||
function getUserDataDir() {
|
||||
if (isCloud) return "/tmp"; // Fallback for Workers
|
||||
|
||||
if (process.env.DATA_DIR) return process.env.DATA_DIR;
|
||||
|
||||
try {
|
||||
const platform = process.platform;
|
||||
const homeDir = os.homedir();
|
||||
|
||||
Reference in new issue
Block a user