File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,13 @@ After all this, you'll be able to run through the below steps:
57
57
58
58
### Running local create react app example
59
59
60
- You can use the create react app setup in ` playground/nextjs ` to test posthog-js as an npm module in a Nextjs application.
60
+ You can use the create react app setup in ` packages/browser/ playground/nextjs` to test posthog-js as an npm module in a Nextjs application.
61
61
62
62
1 . Run ` posthog ` locally on port 8000 (` DEBUG=1 TEST=1 ./bin/start ` ).
63
63
1 . Run ` python manage.py setup_dev --no-data ` on posthog repo, which sets up a demo account.
64
64
1 . Copy Project API key found in ` http://localhost:8000/project/settings ` and save it for the last step.
65
- 1 . Run ` cd playground/nextjs ` .
66
- 1 . Run ` pnpm i ` to install dependencies.
67
- 1 . Run ` pnpm run build-posthog-js ` to build ` posthog-js ` locally.
65
+ 1 . Run ` cd packages/browser/playground/nextjs ` .
66
+ 1 . Run ` pnpm install-deps ` to install dependencies.
68
67
1 . Run ` NEXT_PUBLIC_POSTHOG_KEY='<your-local-api-key>' NEXT_PUBLIC_POSTHOG_HOST='http://localhost:8000' pnpm dev ` to start the application.
69
68
70
69
### Tiers of testing
You can’t perform that action at this time.
0 commit comments