From b1c64da0cbf083c03b46455e997c2647444dcf58 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Tue, 27 Oct 2020 23:20:54 +0530 Subject: [PATCH] :bug: Don't use ?. for base URL --- post-process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-process.ts b/post-process.ts index 516a653..ecfe3fe 100644 --- a/post-process.ts +++ b/post-process.ts @@ -10,7 +10,7 @@ export const preProcess = async () => { baseUrl?: string; }; } = safeLoad(await readFile(join(".", ".upptimerc.yml"), "utf8")) as any; - const baseUrl = config["status-website"]?.baseUrl || "/"; + const baseUrl = (config["status-website"] || {}).baseUrl || "/"; execSync(`sapper export --legacy --basepath ${baseUrl}`, { stdio: "inherit",