1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-21 21:19:31 +01:00

40 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-11-12 02:09:28 +05:30
import "../styles/globals.css";
import Head from "next/head";
import { AppProps } from "next/app";
2023-04-08 12:23:32 +05:30
import { Provider } from "jotai";
import "react-tooltip/dist/react-tooltip.css";
2024-04-21 19:34:59 +05:30
import { Toaster } from "@/components/ui/toaster";
2024-12-15 23:23:20 +05:30
import posthog from "posthog-js";
import { useEffect } from "react";
import { PostHogProvider } from "posthog-js/react";
2022-11-12 02:09:28 +05:30
const MyApp = ({ Component, pageProps }: AppProps) => {
2024-12-15 23:23:20 +05:30
useEffect(() => {
posthog.init("phc_QMcmlmComdofjfaRPzoN4KV9ziV2KgOwAOVyu4J3dIc", {
api_host: "https://us.i.posthog.com",
person_profiles: "identified_only",
// Enable debug mode in development
loaded: (posthog) => {
if (process.env.NODE_ENV === "development") posthog.debug();
},
});
}, []);
2022-11-12 02:09:28 +05:30
return (
2022-12-08 08:55:26 +05:30
<>
2022-11-12 02:09:28 +05:30
<Head>
<title>Upscayl</title>
</Head>
2024-12-15 23:23:20 +05:30
2023-04-08 12:23:32 +05:30
<Provider>
2024-12-15 23:23:20 +05:30
<PostHogProvider client={posthog}>
<Component {...pageProps} data-theme="upscayl" />
<Toaster />
</PostHogProvider>
2023-04-08 12:23:32 +05:30
</Provider>
2022-12-08 08:55:26 +05:30
</>
2022-11-12 02:09:28 +05:30
);
};
export default MyApp;