Skip to content

Commit

Permalink
🐛 Prevent double slashed (fixed upptime/upptime#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 24, 2020
1 parent a536ff7 commit 77b08f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const preProcess = async () => {
};
} = safeLoad(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}/`;
config.path = `https://${config.owner}.github.io/${config.repo}`;
if (config["status-website"]?.cname) config.path = `https://${config["status-website"].cname}`;
config.i18n = { ...i18n, ...config.i18n };
await ensureDir(join(".", "src", "data"));
Expand Down

0 comments on commit 77b08f9

Please sign in to comment.