mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
fixed default path
This commit is contained in:
parent
fc47be65ea
commit
6175dd6606
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user