Repository navigation
Add a dedicated Next.js and TanStack installation snippets to the website tracking setup page - #1098
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
@ANSHSINGH050404 is attempting to deploy a commit to the Databuddy OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
@izadoesdev Happy to make any tweaks or adjustments based on your feedback! |
|
|
@greptile-apps check |
… and Vue snippets
c166ea5 to
cdfd19f
Compare
63c66f4
into
databuddy-analytics:staging
Description
Adds dedicated Next.js and TanStack installation snippets to the website tracking setup page (
/websites/[id]/settings/tracking).Most modern React developers build with Next.js or TanStack Start / Router. Previously, the setup page only displayed a generic React layout snippet, which left ambiguity around Next.js App Router root layout conventions (
app/layout.tsx), Server Components, environment variable naming (NEXT_PUBLIC_DATABUDDY_CLIENT_ID), and TanStack Router root routes (src/routes/__root.tsx).Closes #1097
Slice
AI Disclosure
Assisted by opencode for review of code , writing unit tests and verifying types. The code was manually reviewed and validated locally.
Checklist
stagingand does not include another unmerged PR unless it is named above.staging; after it closes, this branch will not be reused for another change.Visual Changes
Before
After
Summary by cubic
Adds a dedicated Next.js installation tab to the website tracking setup page, so React developers get framework-specific guidance instead of the generic React snippet.
app/layout.tsxand supports keeping the Client ID out of code via theNEXT_PUBLIC_DATABUDDY_CLIENT_IDenvironment variable.Written for commit cdfd19f. Summary will update on new commits.