Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch GitHub projects at build-time #142

Open
gomorizsolt opened this issue May 27, 2020 · 0 comments
Open

Fetch GitHub projects at build-time #142

gomorizsolt opened this issue May 27, 2020 · 0 comments

Comments

@gomorizsolt
Copy link
Collaborator

gomorizsolt commented May 27, 2020

There are two recurring issues with fetching the projects at client-side (i.e. after the project has rehydrated):

  • the request quota can be exceeded fairly simply (60 / hour if they're unauthenticated)
  • CORS errors (not sure of why it happens though)

As discussed, one solution to circumvent these issues would be to fetch at build-time.

See: https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation

This implies we should take care of stale data (e.g. schedule a daily rebuild).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant