bid-tool/auto-bid-tool/system/constants.js

18 lines
476 B
JavaScript

import * as path from 'path';
import { fileURLToPath } from 'url'; // ✅ Cần import từ 'url'
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const CONSTANTS = {
PROFILE_PATH: path.join(__dirname, 'profiles'),
ERROR_IMAGES_PATH: path.join(__dirname, 'error-images'),
TYPE_IMAGE: {
ERRORS: 'errors',
SUCCESS: 'success',
WORK: 'work',
},
};
export default CONSTANTS;