Deploy your own Vercel instance
I just deployed my own instance and would like to share my experience. The final result can be viewed at @cy-Yin : https://github.com/cy-Yin
Similar to github-readme-stats/deploy-on-your-own, with some details modified.
- get your Personal Access Token (PAT) For deploying your own instance of GitHub Readme Stats, you will need to create a GitHub Personal Access Token (PAT).
- Go to Account -> Settings -> Developer Settings -> Personal access tokens -> Tokens (classic).
- Click on
Generate new token->Generate new token (classic). - Scopes to select:
- repo
- read:user
- Click on Generate token and copy it (Note that this token is not visible after refreshing the website).
- Vercel deployment
- Go to vercel.com.
- Click on
Log in. - Sign in with GitHub by pressing
Continue with GitHub. - Sign in to GitHub and allow access to all repositories if prompted.
- Fork this repo.
- Go back to your Vercel dashboard.
- To import a project, click the
Add New...button and select theProjectoption. - Click the
Continue with GitHubbutton, search for the required Git Repository and import it by clicking theImportbutton. Alternatively, you can import a Third-Party Git Repository using theImport Third-Party Git Repository ->link at the bottom of the page. - Create a Personal Access Token (PAT) as described in the previous section.
- Add the PAT as an
environment variablenamedGITHUB_TOKEN1Very important: Note that in the github-readme-stats repo, theenvironment variableis named asPAT_1as shown below. However, in this repo one must name thisenvironment variableasGITHUB_TOKEN1. I have triedGITHUB_TOKEN,PAT_1, etc., only theGITHUB_TOKEN1works.
- Click deploy, and you're good to go. See your domains to use the API!
I followed all the steps listed above by @cy-Yin. Not sure why but I am getting 404 after deployment on Vercel, see screenshot below
I followed all the steps listed above by @cy-Yin. Not sure why but I am getting 404 after deployment on Vercel, see screenshot below
![]()
Don't worry — I ran into this issue when I deployed as well. I also clicked into other people's instances and saw the same page. For example, @codeztech-atique's deployed endpoint: https://github-profile-trophy-roan.vercel.app/. But this doesn't affect using it in your README.md.
I followed all the steps listed above by @cy-Yin. Not sure why but I am getting 404 after deployment on Vercel, see screenshot below
![]()
I had to set the GITHUB_TOKEN1 env var in vercel to get it to work. Hope this helps 😄