happykit/flags

How to retrieve flags in api of server not rendering pages

mikeguo99 opened this issue · 1 comments

I limit features in pages and meanwhile want to limit it in my api too.
I'm not finding any function can be called in api.
Only Public API can be used?

If your API is in Next.js (pages/api), you can use getFlags() just like you would in getServerSideProps.
If your API is a separate service, you can use the Public API.

I'll close this but feel free to comment again if something is still unclear :)