Serve GitHub Readme Stats through AWS instead of Vercel. Resolves issues with long requests timeouts. Vercel supports Serverless Function Execution Timeout of up to 30 seconds only for enterprise pricing. Occasional Wakatime API requests, however, can take 15-30 seconds. AWS Showcase
- Lambda with 128MB of memory
- API Gateway with maximum timeout of 30 seconds and cheaper HttpApi
- CloudFront with caching based on HTTP query only
/api/v1/users/:user/stats/:range
without a specified range increases response time to ~30 seconds./api/v1/users/:user/stats/:range
WITH a specified range of 7 days decreases response time to ~7 seconds. However, this requires a Wakatime API for users having a repository. This fork addresses this issue.