add missing client script oops

This commit is contained in:
MapleLeaf
2021-12-31 15:11:54 -06:00
committed by Darius
parent 4da5fad390
commit a80e99ed7c

View File

@@ -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}