core: fix startup

This commit is contained in:
undefined committed 2025-03-04 12:09:15 +08:00
1 parent d72bb2074d
commit f7e635c40c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ export async function apply(ctx: Context) {
? (!host.includes(this.request.host))
: this.request.host !== host)
)) withDomainId ||= domainId;
res = ctx.server.router.url.call(ctx.server.router, name, args, { query }).toString();
res = server.router.url.call(server.router, name, args, { query }).toString();
if (anchor) res = `${res}#${anchor}`;
if (withDomainId) res = `/d/${withDomainId}${res}`;
} catch (e) {