diff --git a/app/root.tsx b/app/root.tsx index 8e17b4e..6e55131 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -16,7 +16,11 @@ import { import { NavBar } from "#app/components/navbar/index.tsx"; import { Footer } from "#app/components/footer.tsx"; import clsx from "clsx"; -import { publicEnv, forceEnvValidation } from "#app/utils/env.server.ts"; +import { + publicEnv, + forceEnvValidation, + type PublicEnv, +} from "#app/utils/env.server.ts"; import { FaviconMeta, faviconLinks } from "#app/utils/favicon.tsx"; import { useNonce } from "./utils/nonce-provider.tsx"; import { ClientHintsCheck, getHints } from "./utils/client-hints.tsx"; @@ -92,12 +96,12 @@ function Document({ children, nonce, theme = "light", - env = {}, + env, }: { children: React.ReactNode; nonce: string; theme?: Theme; - env?: Record; + env?: PublicEnv; }) { return ( @@ -105,6 +109,9 @@ function Document({ + {!env?.ALLOW_INDEXING && ( + + )} @@ -118,7 +125,7 @@ function Document({