fixed default path

This commit is contained in:
Nathan Price 2025-01-17 15:02:34 -05:00
parent fc47be65ea
commit 6175dd6606
No known key found for this signature in database

View File

@ -13,7 +13,7 @@ import fs from "fs"
const __filename = fileURLToPath(import.meta.url) const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename) const __dirname = path.dirname(__filename)
const configPath = process.env.QUARTZ_CONFIG_PATH || path.resolve(__dirname, "config.json") const configPath = process.env.QUARTZ_CONFIG_PATH || path.resolve(__dirname, "../../config.json")
const rawData = fs.readFileSync(configPath, "utf-8") const rawData = fs.readFileSync(configPath, "utf-8")
const configData = JSON.parse(rawData) const configData = JSON.parse(rawData)