Skip to content

Commit

Permalink
Merge pull request #175
Browse files Browse the repository at this point in the history
* Added posthog
  • Loading branch information
Xavilien authored Nov 7, 2024
1 parent 0555888 commit 6408da8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
1 change: 1 addition & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"next": "^14.1.1",
"nightwind": "github:btwj/nightwind#78a3476",
"passlink": "^1.1.0",
"posthog-js": "^1.181.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-headless-pagination": "^0.1.0",
Expand Down
46 changes: 28 additions & 18 deletions apps/frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,36 @@ import { PersistGate } from "redux-persist/integration/react";
import Head from "next/head";

import { ClerkProvider } from "@clerk/nextjs";
import { PostHogProvider } from 'posthog-js/react'

const options = {
api_host: process.env.REACT_APP_PUBLIC_POSTHOG_HOST,
}

export default function MyApp({ Component, pageProps }: AppProps) {
return (
<ClerkProvider>
<Head>
<title>CMU Courses</title>
<meta
name="description"
content="CMU Courses brings together course information, schedules and FCE data to help you plan your semesters."
/>
<meta
name="keywords"
content="ScottyLabs, CMU, Carnegie Mellon, Courses, Course Tool, CMU Courses, FCEs, Ratings, Schedules, Scheduling"
/>
</Head>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Component {...pageProps} />
</PersistGate>
</Provider>
</ClerkProvider>
<PostHogProvider
apiKey={process.env.NEXT_PUBLIC_POSTHOG_KEY}
options={options}
>
<ClerkProvider>
<Head>
<title>CMU Courses</title>
<meta
name="description"
content="CMU Courses brings together course information, schedules and FCE data to help you plan your semesters."
/>
<meta
name="keywords"
content="ScottyLabs, CMU, Carnegie Mellon, Courses, Course Tool, CMU Courses, FCEs, Ratings, Schedules, Scheduling"
/>
</Head>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Component {...pageProps} />
</PersistGate>
</Provider>
</ClerkProvider>
</PostHogProvider>
);
}
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 6408da8

Please sign in to comment.