Skip to content

Commit

Permalink
🐛 Remove check 1 dir up
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 28, 2020
1 parent e7416e2 commit 028692a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions post-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,11 @@ export const preProcess = async () => {
await remove(join(".", "__sapper__", "export", baseUrl));
}

try {
const file = await readFile(join("..", ".upptimerc.yml"), "utf8");
if (file) {
config = safeLoad(file) as any;
console.log("Using root config instead");
}
} catch (error) {
console.log("Root config not found 1 dir up");
}

try {
const file = await readFile(join("..", "..", ".upptimerc.yml"), "utf8");
if (file) {
config = safeLoad(file) as any;
console.log("Using root config instead");
console.log("Using root config instead", config);
}
} catch (error) {
console.log("Root config not found 2 dirs up");
Expand Down

0 comments on commit 028692a

Please sign in to comment.