Skip to content

Commit

Permalink
infra: exchange splitbee for vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
albingroen committed Jul 25, 2024
1 parent dd0f485 commit 5531d69
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 15 deletions.
50 changes: 39 additions & 11 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@heroicons/react": "^2.0.18",
"@next/font": "^14.0.3",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@splitbee/web": "^0.3.0",
"@vercel/analytics": "^1.3.1",
"axios": "^1.6.2",
"formik": "^2.4.5",
"next": "^14.0.3",
Expand Down
6 changes: 3 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Seo from "../components/Seo";
import Stack from "../components/Stack";
import WelcomeModal from "../components/WelcomeModal";
import axios from "axios";
import splitbee from "@splitbee/web";
import { Analytics } from "@vercel/analytics/react";
import type { AppProps } from "next/app";
import { SchemaContext } from "../lib/context";
import { Toaster } from "react-hot-toast";
Expand All @@ -15,8 +15,6 @@ import { useEffect, useState } from "react";
import { useRouter } from "next/dist/client/router";
import { inter } from "../lib/font";

splitbee.init();

function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter();

Expand Down Expand Up @@ -146,6 +144,8 @@ function MyApp({ Component, pageProps }: AppProps) {
</footer>
</main>
</SchemaContext.Provider>

<Analytics />
</>
);
}
Expand Down

0 comments on commit 5531d69

Please sign in to comment.