Skip to content

Commit

Permalink
vercel-analytics-solidを依存関係に追加し、Analyticsコンポーネントをページに統合
Browse files Browse the repository at this point in the history
  • Loading branch information
todays-mitsui committed Feb 4, 2025
1 parent 44dd740 commit acb66b3
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 9 deletions.
66 changes: 57 additions & 9 deletions mogul/package-lock.json

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

3 changes: 3 additions & 0 deletions mogul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@
"vite-plugin-wasm": "^3.3.0",
"vite-tsconfig-paths": "^5.1.3",
"vitest": "^2.1.4"
},
"dependencies": {
"vercel-analytics-solid": "github:todays-mitsui/vercel-analytics-solid"
}
}
2 changes: 2 additions & 0 deletions mogul/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "./index.css";
import { clientOnly } from "@solidjs/start";
import Header from "~/components/Header";
import styles from "~/routes/index.module.css";
import { Analytics } from 'vercel-analytics-solid/solidstart';

const SideTools = clientOnly(() => import("~/components/SideTools"));
const Prompt = clientOnly(() => import("~/components/Prompt"));
Expand All @@ -11,6 +12,7 @@ const Console = clientOnly(() => import("~/components/Console"));
export default function Page() {
return (
<>
<Analytics />
<Header />
<main class={styles.main}>
<SideTools class={styles.sideTools} />
Expand Down

0 comments on commit acb66b3

Please sign in to comment.