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

add statsig app router example #70733

Open
wants to merge 5 commits into
base: canary
Choose a base branch
from

Conversation

daniel-statsig
Copy link

What?

A new example for using Statsig (https://statsig.com/) in an App Router app.

Why?

Our documentation for how to integrate Statsig with Next.js (https://docs.statsig.com/client/javascript-sdk/next-js) sees a lot of traffic. I would like to be able to include a simple create-next-app command as part of the docs and reference this example.

How?

Ran the statsig example locally, ensuring it passed the "a_gate" check.

Screenshot:
Screenshot 2024-10-02 at 3 28 34 PM

@ijjk ijjk added the examples Issue/PR related to examples label Oct 2, 2024
@ijjk
Copy link
Member

ijjk commented Oct 2, 2024

Allow CI Workflow Run

  • approve CI run for commit: 776e287

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk
Copy link
Member

ijjk commented Oct 2, 2024

Allow CI Workflow Run

  • approve CI run for commit: d39cf45

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@daniel-statsig daniel-statsig changed the title add with-statsig app router example add statsig app router example Oct 2, 2024
Copy link

socket-security bot commented Oct 2, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@statsig/js-client@3.1.0 Transitive: network +1 383 kB daniel-statsig
npm/@statsig/react-bindings@3.1.0 Transitive: network +1 153 kB daniel-statsig
npm/statsig-node@5.27.2 network +1 1.87 MB daniel-statsig

View full report↗︎

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

Successfully merging this pull request may close these issues.

2 participants