Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flags for Next 13 app dir #46

Open
richardantao opened this issue May 3, 2023 · 1 comment
Open

Flags for Next 13 app dir #46

richardantao opened this issue May 3, 2023 · 1 comment

Comments

@richardantao
Copy link

richardantao commented May 3, 2023

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants