diff --git a/packages/start/root/Scripts.tsx b/packages/start/root/Scripts.tsx index cc1828e6b..505f412b7 100644 --- a/packages/start/root/Scripts.tsx +++ b/packages/start/root/Scripts.tsx @@ -3,6 +3,7 @@ import { useRequest } from "../server/ServerContext"; import { InlineStyles } from "./InlineStyles"; const isDev = import.meta.env.MODE === "development"; +const isProd = import.meta.env.PROD; const isSSR = import.meta.env.START_SSR; const isIslands = import.meta.env.START_ISLANDS; @@ -44,22 +45,24 @@ function DevScripts() { function ProdScripts() { const context = useRequest(); return ( - <> - {isSSR && } - - - {isServer && - (isSSR ? ( -