mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init umami
This commit is contained in:
parent
9968fe23fa
commit
d85ea6861c
4 changed files with 20 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue