github-profile-trophy icon indicating copy to clipboard operation
github-profile-trophy copied to clipboard

Deploy your own Vercel instance

Open cy-Yin opened this issue 1 month ago • 3 comments

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.

  1. 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).
  1. 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 the Project option.
  • 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.
  • Create a Personal Access Token (PAT) as described in the previous section.
  • Add the PAT as an environment variable named GITHUB_TOKEN1 Very important: Note that in the github-readme-stats repo, the environment variable is named as PAT_1 as shown below. However, in this repo one must name this environment variable as GITHUB_TOKEN1. I have tried GITHUB_TOKEN, PAT_1, etc., only the GITHUB_TOKEN1 works.
  • Click deploy, and you're good to go. See your domains to use the API!

cy-Yin avatar Nov 26 '25 09:11 cy-Yin

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

Image

ikostan avatar Dec 10 '25 02:12 ikostan

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

Image

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.

cy-Yin avatar Dec 10 '25 11:12 cy-Yin

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

Image

I had to set the GITHUB_TOKEN1 env var in vercel to get it to work. Hope this helps 😄

minhd-vu avatar Dec 11 '25 01:12 minhd-vu