add missing client script oops
This commit is contained in:
@@ -14,6 +14,10 @@ export async function render(url: string) {
|
|||||||
</StaticRouter>,
|
</StaticRouter>,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const scriptSource = import.meta.env.PROD
|
||||||
|
? "/entry.client.js"
|
||||||
|
: "/src/entry.client.tsx"
|
||||||
|
|
||||||
return /* HTML */ `
|
return /* HTML */ `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
@@ -27,6 +31,7 @@ export async function render(url: string) {
|
|||||||
/>
|
/>
|
||||||
<link rel="stylesheet" href="/src/tailwind.css" />
|
<link rel="stylesheet" href="/src/tailwind.css" />
|
||||||
${renderToString(<>{headTags}</>)}
|
${renderToString(<>{headTags}</>)}
|
||||||
|
<script type="module" src="${scriptSource}"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
${app}
|
${app}
|
||||||
|
|||||||
Reference in New Issue
Block a user