We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2534519 commit 9d59428Copy full SHA for 9d59428
src/server/index.tsx
@@ -17,12 +17,12 @@ app.get("*", (c) => {
17
window.$RefreshSig$ = () => (type) => type;
18
window.__vite_plugin_react_preamble_installed__ = true;
19
`;
20
- const hmrScript = import.meta.env ? (
+ const hmrScript = import.meta.env.PROD ? (
21
<script type="module">{injectClientScript}</script>
22
) : null;
23
24
const cssPath = import.meta.env.PROD
25
- ? "/assets/main.css"
+ ? "/assets/index.css"
26
: "src/client/index.css";
27
const clientScriptPath = import.meta.env.PROD
28
? "/assets/client.js"
0 commit comments