mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
added self-hosting on Vercel section (#445)
* Add self-hosting instructions for Vercel Added a self-hosting guide for Vercel to the README. * Fix self-hosting section in README.md Reorganize self-hosting instructions and improve formatting * Reorganize self-hosting instructions in README Moved self-hosting instructions above the Contribution Guide and formatted token names in code blocks.
This commit is contained in:
parent
73dff6484b
commit
ccb591b887
1 changed files with 29 additions and 0 deletions
29
README.md
29
README.md
|
|
@ -614,6 +614,35 @@ Usage:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Self-hosting on Vercel
|
||||||
|
|
||||||
|
By self-hosting you avoid rate-limits, instances getting paused and you bypass the #439 issue.
|
||||||
|
|
||||||
|
1. For people who do not have this repo forked, you need to do that before you can deploy anything.
|
||||||
|
|
||||||
|
2. Make an account, connect your GitHub account to Vercel, and import your repo.
|
||||||
|
|
||||||
|
3. Go back to GitHub, generate a token, and copy it.
|
||||||
|
|
||||||
|
4. Set your token scopes to `read:user` + `public_repo` (only use `repo` if you want private contributions counted).
|
||||||
|
|
||||||
|
5. On Vercel's configure screen, add two environment variables and paste the token as the value of each — you can use the same token for both:
|
||||||
|
|
||||||
|
```
|
||||||
|
GITHUB_TOKEN1=your_token
|
||||||
|
GITHUB_TOKEN2=your_token
|
||||||
|
```
|
||||||
|
|
||||||
|
6. After that you can deploy it.
|
||||||
|
|
||||||
|
7. Set Vercel Authentication -> Only Preview Deployments, or your card shows blank.
|
||||||
|
|
||||||
|
8. You get a domain which you can use/test, it looks something like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
https://<your-app>.vercel.app/?username=USERNAME
|
||||||
|
```
|
||||||
|
|
||||||
# Contribution Guide
|
# Contribution Guide
|
||||||
|
|
||||||
Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
|
Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue