Skip to content

Commit

Permalink
🐛 Don't use ?. for base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 27, 2020
1 parent 29ddbf5 commit b1c64da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b1c64da

Please sign in to comment.