feat: init umami

This commit is contained in:
swve 2024-06-08 12:23:04 +01:00
parent 9968fe23fa
commit d85ea6861c
4 changed files with 20 additions and 5 deletions

View file

@ -9,7 +9,7 @@ import { getResponseMetadata } from '@services/utils/ts/requests'
import CredentialsProvider from 'next-auth/providers/credentials'
import GoogleProvider from 'next-auth/providers/google'
const isDevEnv = LEARNHOUSE_TOP_DOMAIN == 'localhost' ? true : false
export const isDevEnv = LEARNHOUSE_TOP_DOMAIN == 'localhost' ? true : false
export const nextAuthOptions = {
debug: true,

View file

@ -4,6 +4,8 @@ import StyledComponentsRegistry from '../components/Utils/libs/styled-registry'
import { motion } from 'framer-motion'
import { SessionProvider } from 'next-auth/react'
import LHSessionProvider from '@components/Contexts/LHSessionContext'
import { isDevEnv } from './auth/options'
import Script from 'next/script'
export default function RootLayout({
children,
@ -19,6 +21,7 @@ export default function RootLayout({
<html className="" lang="en">
<head />
<body>
{isDevEnv ? '' : <Script data-website-id="a1af6d7a-9286-4a1f-8385-ddad2a29fcbb" src="/umami/script.js" />}
<SessionProvider>
<LHSessionProvider>
<StyledComponentsRegistry>