happykit / flags

⛳️ Feature Flags for Next.js
https://happykit.dev
MIT License
1.02k stars 11 forks source link

serverLoadingTimeout config option #6

Closed dferber90 closed 2 years ago

dferber90 commented 2 years ago

getFlags should respect an optional serverLoadingTimeout option to avoid hanging in case the API can't be reached.

Needs to have a sane default value.

Needs to still throw when we're generating static pages, to avoid statically building pages based on no API response.

dferber90 commented 2 years ago

Done in v1.1.0 through https://github.com/happykit/flags/commit/ad88df67b12972a04c1dc8feecb7f1ef0a738344.