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

19 lines
512 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"),
LOCAL_DATA_PATH: path.join(__dirname, "local-data"),
ERROR_IMAGES_PATH: path.join(__dirname, "error-images"),
TYPE_IMAGE: {
ERRORS: "errors",
SUCCESS: "success",
WORK: "work",
},
};
export default CONSTANTS;