This commit is contained in:
Daniel Ledda
2024-11-05 21:53:17 +01:00
parent 98a00b6ad0
commit 6d64b61323

View File

@@ -198,7 +198,7 @@ Deno.serve({
});
const ssrContext: DJSSRContext = { styles: {}, registry: {}, head: { title: "", metatags: [] } };
if (router) {
await router.replace(pathname.split("/generative-energy")[1]);
await router.replace(pathname.split('/' + baseDirectoryName)[1]);
await router.isReady();
}
const rendered = await renderToString(app, ssrContext);