Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Vercel Web Analytics
import { inject } from '@vercel/analytics';

inject();
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ <h3>ℹ️ Quick Start - Try These!</h3>
<script defer src="public/js/session.js"></script>
<script defer src="public/js/terminal.js"></script>
<script defer src="public/js/main.js"></script>
<script type="module" src="analytics.js"></script>
<script type="module" src="speed-insights.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions my-workflow-app/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Analytics } from '@vercel/analytics/next';
import "./globals.css";

const geistSans = Geist({
Expand Down Expand Up @@ -28,6 +29,7 @@ export default function RootLayout({
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<Analytics />
</body>
</html>
);
Expand Down
54 changes: 43 additions & 11 deletions my-workflow-app/package-lock.json

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

13 changes: 7 additions & 6 deletions my-workflow-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
"lint": "eslint"
},
"dependencies": {
"@vercel/analytics": "^2.0.1",
"next": "16.0.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"next": "16.0.1"
"react-dom": "19.2.0"
},
"devDependencies": {
"typescript": "^5",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@tailwindcss/postcss": "^4",
"tailwindcss": "^4",
"eslint": "^9",
"eslint-config-next": "16.0.1"
"eslint-config-next": "16.0.1",
"tailwindcss": "^4",
"typescript": "^5"
}
}