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 ? (
-
- ) : import.meta.env.START_INDEX_HTML ? (
- // used in the SPA build index.html mode to create a reference to index html
- // which will be used by the client build
-
- ) : (
-
- ))}
-
- >
+ isProd && (
+ <>
+ {isSSR && }
+
+
+ {isServer &&
+ (isSSR ? (
+
+ ) : import.meta.env.START_INDEX_HTML ? (
+ // used in the SPA build index.html mode to create a reference to index html
+ // which will be used by the client build
+
+ ) : (
+
+ ))}
+
+ >
+ )
);
}