Spaces:
Runtime error
Runtime error
Update storage.js
Browse files- 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}`);
|