diff --git a/main.ts b/main.ts index 735102a..57a4a86 100644 --- a/main.ts +++ b/main.ts @@ -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);