happykit / flags

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

Flags for Next 13 app dir #46

Open richardantao opened 1 year ago

richardantao commented 1 year ago

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 });
};
dferber90 commented 1 year ago

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.