Skip to content

Commit

Permalink
Add vercel analytics script (#4604)
Browse files Browse the repository at this point in the history
  • Loading branch information
acywatson authored Jun 5, 2023
1 parent c429f46 commit bc570ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/lexical-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@docusaurus/theme-search-algolia": "^2.0.1",
"@mdx-js/react": "^1.6.21",
"@radix-ui/react-tabs": "^0.1.5",
"@vercel/analytics": "^1.0.1",
"clsx": "^1.1.1",
"docusaurus-plugin-typedoc": "^0.17.5",
"prism-react-renderer": "^1.2.1",
Expand Down
4 changes: 4 additions & 0 deletions packages/lexical-website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import HomepageExamples from '@site/src/components/HomepageExamples';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Layout from '@theme/Layout';
import {inject} from '@vercel/analytics';
import clsx from 'clsx';
import React from 'react';

import styles from './styles.module.css';

// activate analytics
inject();

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
Expand Down

2 comments on commit bc570ab

@vercel
Copy link

@vercel vercel bot commented on bc570ab Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-git-main-fbopensource.vercel.app
lexical-fbopensource.vercel.app
lexicaljs.org
www.lexical.dev
lexical.dev
lexicaljs.com

@vercel
Copy link

@vercel vercel bot commented on bc570ab Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

playground.lexical.dev
lexical-playground.vercel.app
lexical-playground-git-main-fbopensource.vercel.app
lexical-playground-fbopensource.vercel.app

Please sign in to comment.