Bugfix. Update generate-web-html function

This commit is contained in:
2026-03-21 14:24:12 +01:00
parent 51db0c447c
commit 4b79993d37
5 changed files with 10 additions and 10 deletions
+3
View File
@@ -3,6 +3,9 @@ import reactDomServer from "react-dom/server";
export default async function importReactDomServer() {
try {
const reactDomServerDynamicImport = await import(path.join(process.cwd(), "node_modules", "react-dom", "server"));
if (!reactDomServerDynamicImport.renderToString) {
return reactDomServer;
}
return reactDomServerDynamicImport;
}
catch (error) {