Browse Source

update

master
Daniel Ledda 2 months ago
parent
commit
6d64b61323
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.ts

+ 1
- 1
main.ts View File

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


Loading…
Cancel
Save