Skip to content

Commit

Permalink
add analitycs
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyteDuke committed May 21, 2024
1 parent 12891de commit 1a2e910
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"type": "module",
"scripts": {
"build": "vite build",
"predeploy" : "npm run build",
"deploy" : "gh-pages -d build",
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"dev": "vite --host",
"lint": "eslint .",
"prepare": "husky",
Expand All @@ -24,6 +24,7 @@
"@milkdown/preset-gfm": "^7.3.6",
"@milkdown/react": "^7.3.6",
"@rooks/use-raf": "^4.11.2",
"@vercel/analytics": "^1.2.2",
"date-fns": "^3.6.0",
"dotenv": "^16.4.5",
"env": "^0.0.2",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { createRoot } from "react-dom/client";
import { Analytics } from "@vercel/analytics/react"

import Desktop from "~/pages/Desktop";
import Login from "~/pages/Login";
Expand Down Expand Up @@ -69,5 +70,6 @@ const root = createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
<Analytics/>
</React.StrictMode>
);

0 comments on commit 1a2e910

Please sign in to comment.