happykit/flags

Flags for Next 13 app dir

richardantao opened this issue · 1 comments

I haven't seen much activity lately, but I was wondering if the APIs are going to be updated to accommodate Next 13's app dir?

I want to move my code from the pages dir to the new app dir but am currently bound to use getServerSideProps because getFlags requires context as an input.

export const getServerSideProps = async context => {
    const { initialFlagState } = await getFlags({ context });
};

I was wondering if the APIs are going to be updated to accommodate Next 13's app dir?

Yes, absolutely. I'm waiting on something inside of Next.js for this to be possible.