From cc1c3b210a8dc2d38f853b8cb168eec783951cb6 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 6 Mar 2024 12:00:19 +0000 Subject: [PATCH] chore: added new .env for script tags (#13765) * added new .env for script tags * Update turbo.json * removed meticulous * added body script .env * nit * fixed injection * Update apps/web/app/layout.tsx Co-authored-by: Alex van Andel * Ensure NEXT_PUBLIC_BODY_SCRIPTS is casted to bool --------- Co-authored-by: Alex van Andel --- apps/web/app/layout.tsx | 23 ++++++++++++++++------- turbo.json | 4 +++- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 5aed2386cc..0733f9c997 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -2,11 +2,9 @@ import { dir } from "i18next"; import { Inter } from "next/font/google"; import localFont from "next/font/local"; import { headers, cookies } from "next/headers"; -import Script from "next/script"; import React from "react"; import { getLocale } from "@calcom/features/auth/lib/getLocale"; -import { IS_PRODUCTION } from "@calcom/lib/constants"; import { prepareRootMetadata } from "@lib/metadata"; @@ -70,11 +68,13 @@ export default async function RootLayout({ children }: { children: React.ReactNo style={embedColorScheme ? { colorScheme: embedColorScheme as string } : undefined} data-nextjs-router="app"> - {!IS_PRODUCTION && process.env.VERCEL_ENV === "preview" && ( - // eslint-disable-next-line @next/next/no-sync-scripts -