-
Notifications
You must be signed in to change notification settings - Fork 28
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
docs: updated next js docs to include app router example #268
Conversation
docs/frameworks/nextjs.md
Outdated
@@ -149,7 +149,29 @@ See documentation about `bucketBy` property in feature definitions for further e | |||
|
|||
## App Router | |||
|
|||
We do not have documentation for Featurevisor SDK usage with Next.js App Router yet. If you are interested in contributing, please reach out to us on [GitHub](https://github.com/featurevisor/featurevisor). | |||
If your using app router, you can use like this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can change it to something like this:
"If you are using App Router, you can do something like this:"
docs/frameworks/nextjs.md
Outdated
// src/app/approuter/page.tsx | ||
import { getInstance } from "../../featurevisor"; | ||
|
||
export default function Home() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be an async
component?
like here? https://github.com/featurevisor/featurevisor-example-nextjs/blob/main/src/app/approuter/page.tsx#L5
|
* main: docs: Fastify integration (#270) docs: add Roku SDK documentation (#272) docs: fix code block v1.11.0 feat: revisioning info moved to its own file (#274) v1.10.1 fix: init command (#277) v1.10.0 feat: allow showing only failed specs in test runner (#276) v1.9.0 feat: allow printing datafile per environment (#275) docs: updated next js docs to include app router example (#268) v1.8.0 feat: allow option to test by generating datafiles early (#267)
Updated next js docs for app router https://github.com/featurevisor/featurevisor-example-nextjs/blob/main/src/app/approuter/page.tsx