Brozy123 commited on
Commit
c24afb6
·
verified ·
1 Parent(s): a0a8390

Update storage.js

Browse files
Files changed (1) hide show
  1. storage.js +2 -2
storage.js CHANGED
@@ -6,8 +6,8 @@ console.log(">>> [MODULE] storage.js: Initializing...");
6
  // --- File Paths ---
7
  // --- Persistence Configuration (Hugging Face Buckets) ---
8
  // The bucket should be mounted at /home/node/app/data (as seen in Space settings)
9
- const PERSISTENT_DIR = path.isAbsolute(process.env.DATA_PATH || "")
10
- ? process.env.DATA_PATH
11
  : path.join(__dirname, 'data');
12
 
13
  console.log(`[STORAGE] Using persistent directory: ${PERSISTENT_DIR}`);
 
6
  // --- File Paths ---
7
  // --- Persistence Configuration (Hugging Face Buckets) ---
8
  // The bucket should be mounted at /home/node/app/data (as seen in Space settings)
9
+ const PERSISTENT_DIR = path.isAbsolute(process.env.DATA_PATH || "")
10
+ ? process.env.DATA_PATH
11
  : path.join(__dirname, 'data');
12
 
13
  console.log(`[STORAGE] Using persistent directory: ${PERSISTENT_DIR}`);