Skip to content

Commit 4208fff

Browse files
🔧 Add info about API rate limiting
1 parent 149f66e commit 4208fff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staart/site",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"module": "dist/module.js",
55
"main": "dist/index.js",
66
"bin": "./dist/index.js",

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const args = minimist(process.argv.slice(2), {
1111
});
1212

1313
const staartSite = async () => {
14+
if (!process.env.GITHUB_TOKEN)
15+
info("No GitHub token: API calls rate limited to 1/sec");
1416
return await generate();
1517
};
1618

0 commit comments

Comments
 (0)