firecrawl/apps/api/postdeploy.js

12 lines
264 B
JavaScript
Raw Normal View History

2024-07-12 05:56:36 +08:00
require("dotenv").config();
fetch(process.argv[2] + "/admin/" + process.env.BULL_AUTH_KEY + "/unpause", {
method: "POST"
}).then(async x => {
console.log(await x.text());
process.exit(0);
}).catch(e => {
console.error(e);
process.exit(1);
});