Skip to content

Commit 44c268e

Browse files
Update readme.md about maxDuration (#2792)
* Update readme.md about maxDuration I think we can remove this warning section since that value in `.json` has been changed to 10 by default nowadays? * Update readme.md remove related section in self deployment section as well * docs: add inverse maxDuration warning --------- Co-authored-by: rickstaa <[email protected]>
1 parent 7a302f6 commit 44c268e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

readme.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,14 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
596596

597597
#### :film_projector: [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
598598

599-
> **Warning**
600-
> If you are on the [hobby (i.e. free)](https://vercel.com/pricing) Vercel plan, please make sure you change the `maxDuration` parameter in the [vercel.json](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json) file from `30` to `10` (see [#1416](https://github.com/anuraghazra/github-readme-stats/issues/1416#issuecomment-950275476) for more information).
601-
602599
Since the GitHub API only allows 5k requests per hour, my `https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter. If you host it on your own Vercel server, then you do not have to worry about anything. Click on the deploy button to get started!
603600

604601
> **Note**
605602
> Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58), we should be able to handle more than 5k requests and have fewer issues with downtime :grin:.
606603
604+
> **Note**
605+
> If you are on the [Pro (i.e. paid)](https://vercel.com/pricing) Vercel plan, the [maxDuration](https://vercel.com/docs/concepts/projects/project-configuration#value-definition) value found in the [Vercel.json](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json) can be increased when your Vercel instance frequently times out during the card request. You are advised to keep this value lower than `30` seconds to prevent high memory usage.
606+
607607
[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)
608608

609609
<details>
@@ -616,16 +616,15 @@ Since the GitHub API only allows 5k requests per hour, my `https://github-readme
616616
![](https://files.catbox.moe/b9oxey.png)
617617
4. Sign in to GitHub and allow access to all repositories if prompted.
618618
5. Fork this repo.
619-
6. After forking the repo, open the [`vercel.json`](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json#L5) file and change the `maxDuration` field to `10`.
620-
7. Go back to your [Vercel dashboard](https://vercel.com/dashboard).
621-
8. To import a project, click the `Add New...` button and select the `Project` option.
619+
6. Go back to your [Vercel dashboard](https://vercel.com/dashboard).
620+
7. To import a project, click the `Add New...` button and select the `Project` option.
622621
![](https://files.catbox.moe/3n76fh.png)
623-
9. Click the `Continue with GitHub` button, search for the required Git Repository and import it by clicking the `Import` button. Alternatively, you can import a Third-Party Git Repository using the `Import Third-Party Git Repository ->` link at the bottom of the page.
622+
8. Click the `Continue with GitHub` button, search for the required Git Repository and import it by clicking the `Import` button. Alternatively, you can import a Third-Party Git Repository using the `Import Third-Party Git Repository ->` link at the bottom of the page.
624623
![](https://files.catbox.moe/mg5p04.png)
625-
10. Create a personal access token (PAT) [here](https://github.com/settings/tokens/new) and enable the `repo` permissions (this allows access to see private repo stats).
626-
11. Add the PAT as an environment variable named `PAT_1` (as shown).
624+
9. Create a personal access token (PAT) [here](https://github.com/settings/tokens/new) and enable the `repo` permissions (this allows access to see private repo stats).
625+
10. Add the PAT as an environment variable named `PAT_1` (as shown).
627626
![](https://files.catbox.moe/0yclio.png)
628-
12. Click deploy, and you're good to go. See your domains to use the API!
627+
11. Click deploy, and you're good to go. See your domains to use the API!
629628

630629
</details>
631630

0 commit comments

Comments
 (0)