Skip to content

Commit 5d74d2b

Browse files
committed
fix: only load hmr on dev
1 parent 9d59428 commit 5d74d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ app.get("*", (c) => {
1717
window.$RefreshSig$ = () => (type) => type;
1818
window.__vite_plugin_react_preamble_installed__ = true;
1919
`;
20-
const hmrScript = import.meta.env.PROD ? (
20+
const hmrScript = import.meta.env.DEV ? (
2121
<script type="module">{injectClientScript}</script>
2222
) : null;
2323

0 commit comments

Comments
 (0)