Skip to content

Commit

Permalink
fix missing hydration script when NODE_ENV is not dev or prod (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
edivados authored Nov 6, 2023
1 parent 7398163 commit ebdfe7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/start/root/Scripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -45,7 +44,7 @@ function DevScripts() {
function ProdScripts() {
const context = useRequest();
return (
isProd && (
!isDev && (
<>
{isSSR && <HydrationScript />}
<NoHydration>
Expand Down

0 comments on commit ebdfe7e

Please sign in to comment.