lucthienphong1120 / github-trophies

Fully version of github profile trophy, more modifications and improvements are added
https://github-trophies.vercel.app
GNU General Public License v3.0
31 stars 16 forks source link

How to deploy this my self so I can also show my private repos stat for pull requests, issues and reviews? #4

Closed mahdi-eth closed 1 week ago

lucthienphong1120 commented 3 weeks ago

Hello, for Local Deploy you can check this

Or you can use my deploy by Vercel for free

mahdi-eth commented 3 weeks ago

Hello my friend, I first forked your repo, then I went to vercel and selected the project, added the github token env variable, and did anything on your deploy guide. But I get this error when trying to deploy it.

Detected source files:
 - .runtime.ts
 - deps.ts
 - index.ts
 - src/card.ts
 - src/error_page.ts
 - src/github_api_client.ts
 - src/icons.ts
 - src/theme.ts
 - src/trophy.ts
 - src/trophy_list.ts
 - src/user_info.ts
 - src/utils.ts
Build Completed in /vercel/output [7s]
Deploying outputs...
Error: The following Serverless Functions contain an invalid "runtime":
  - index.ts (provided.al2). Learn More: https://vercel.com/guides/serverless-function-contains-invalid-runtime-error 
mahdi-eth commented 2 weeks ago

I would be very glad if you could help resolve this issue my friend. @lucthienphong1120

f-hicks commented 1 week ago

I fixed this using the link it provides you. In your project settings you need to change the Node.js version to v18 This shows you how to do it

mahdi-eth commented 1 week ago

Thank you my friend for your time. It worked.