diff --git a/pre-process.ts b/pre-process.ts index ab838e7..c6bdd02 100644 --- a/pre-process.ts +++ b/pre-process.ts @@ -18,11 +18,12 @@ export const preProcess = async () => { i18n?: { [index: string]: string }; "status-website"?: { cname?: string; + baseUrl?: string; }; } = load(await readFile(join("..", ".upptimerc.yml"), "utf8")) as any; if (!config.owner || !config.repo) throw new Error("Owner/repo not set"); config.path = `https://${config.owner}.github.io/${config.repo}`; - if (config["status-website"]?.cname) config.path = `https://${config["status-website"].cname}`; + if (config["status-website"]?.cname) config.path = `https://${config["status-website"].cname}${config["status-website"]?.baseUrl ?? ""}`; config.i18n = { ...i18n, ...config.i18n }; await ensureDir(join(".", "src", "data")); await writeJson(join(".", "src", "data", "config.json"), config);