Skip to content

Commit

Permalink
fix: increase wait after the CDN gets ready
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 27, 2020
1 parent 66a24fa commit 753cfe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/waitToDeploy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const got = require("got");
const getState = require("./getState");

const wait = () => {
const wait = (timeout = 10000) => {
return new Promise(resolve => {
setTimeout(resolve, 10000);
setTimeout(resolve, timeout);
});
};

Expand Down Expand Up @@ -38,7 +38,7 @@ const ping = async () => {
}

// Success, let's still wait a bit, just in case.
await wait();
await wait(30000);
console.log("✅ Site deployed and ready!");
process.exit(0);
};
Expand Down

0 comments on commit 753cfe5

Please sign in to comment.