flags icon indicating copy to clipboard operation
flags copied to clipboard

Flags for Next 13 app dir

Open richardantao opened this issue 1 year ago • 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 });
};

richardantao avatar May 03 '23 00:05 richardantao

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.

dferber90 avatar May 14 '23 15:05 dferber90