diff --git a/Dockerfile b/Dockerfile index b06d11ac..becd6359 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Base image -FROM python:3.12-slim-bookworm as base +FROM python:3.12.3-slim-bookworm as base # Install Nginx, curl, and build-essential RUN apt update && apt install -y nginx curl build-essential \ diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 5aa1d296..e385219f 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -1,5 +1,5 @@ # -FROM python:3.12 +FROM python:3.12.3 # poetry RUN pip install poetry diff --git a/apps/web/app/auth/options.ts b/apps/web/app/auth/options.ts index 04553622..b953fd6a 100644 --- a/apps/web/app/auth/options.ts +++ b/apps/web/app/auth/options.ts @@ -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, diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 93dcdc2d..2ae9dd48 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -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({ + {isDevEnv ? '' :