From ebdfe7ed7321981be6c731566bf47659ac5b628c Mon Sep 17 00:00:00 2001
From: Davide <43080019+edivados@users.noreply.github.com>
Date: Mon, 6 Nov 2023 21:16:16 +0100
Subject: [PATCH] fix missing hydration script when NODE_ENV is not dev or prod
(#1111)
---
packages/start/root/Scripts.tsx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/packages/start/root/Scripts.tsx b/packages/start/root/Scripts.tsx
index 505f412b7..56bb06a95 100644
--- a/packages/start/root/Scripts.tsx
+++ b/packages/start/root/Scripts.tsx
@@ -3,7 +3,6 @@ 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;
@@ -45,7 +44,7 @@ function DevScripts() {
function ProdScripts() {
const context = useRequest();
return (
- isProd && (
+ !isDev && (
<>
{isSSR && }