Skip to content

[lexical-playground][lexical-website] Feature: Add Vercel Analytics and Speed Insights#8796

Merged
zurfyx merged 1 commit into
mainfrom
zurfyx/vercel-analytics-speed-insights
Jul 6, 2026
Merged

[lexical-playground][lexical-website] Feature: Add Vercel Analytics and Speed Insights#8796
zurfyx merged 1 commit into
mainfrom
zurfyx/vercel-analytics-speed-insights

Conversation

@zurfyx

@zurfyx zurfyx commented Jul 6, 2026

Copy link
Copy Markdown
Member

Description

Both the Lexical playground (playground.lexical.dev) and the Lexical website (lexical.dev) are deployed on Vercel, but neither was reporting to Vercel Analytics or Speed Insights. This adds both modules to each site.

  • Playground (Vite + React SPA): renders <Analytics /> and <SpeedInsights /> from @vercel/analytics/react and @vercel/speed-insights/react at the root of PlaygroundApp.
  • Website (Docusaurus): adds a src/theme/Root.tsx swizzle that mounts the same two components app-wide. Both render nothing during SSR and only activate after hydration.

Test plan

  • pnpm run tsc (playground) and pnpm --filter @lexical/website run tsc pass.
  • eslint + prettier clean on changed files.
  • pnpm install --frozen-lockfile passes.
  • Analytics/Speed Insights beacons only fire on the Vercel deployment; verify in the Vercel dashboards after deploy.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 6, 2026
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview Jul 6, 2026 6:40pm
lexical-playground Ready Ready Preview Jul 6, 2026 6:40pm

Request Review

@zurfyx zurfyx added this pull request to the merge queue Jul 6, 2026
Merged via the queue into main with commit 08e5e82 Jul 6, 2026
86 of 87 checks passed
@etrepum etrepum mentioned this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants