c-hive / dotdev

Next.js SPA professional website template for teams and individuals: https://c-hive.github.io/dotdev/
MIT License
0 stars 1 forks source link

Fetch GitHub projects at build-time #142

Open gomorizsolt opened 4 years ago

gomorizsolt commented 4 years ago

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

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).