This commit is contained in:
Jerry 2025-04-23 17:41:56 +08:00
parent ddc4060caf
commit e5929d9268
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
const relativelyPath = {
config: '/data/crystelf/config.json',
};
export default relativelyPath;

View File

@ -2,10 +2,11 @@ import Path, { defaultConfig } from '../../constants/path.js';
import fc from '../../components/json.js'; import fc from '../../components/json.js';
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'fs';
import relativelyPath from '../../constants/relativelyPath.js';
const configPath = Path.config; const configPath = Path.config;
const configFile = path.join(configPath, 'config.json'); const configFile = path.join(configPath, 'config.json');
const configDir = 'data/crystelf/config.json'; const configDir = relativelyPath.config;
let configCache = {}; let configCache = {};
let lastModified = 0; let lastModified = 0;