diff --git a/server/aleph.ts b/server/aleph.ts index 6d510397c..1ac36a91d 100644 --- a/server/aleph.ts +++ b/server/aleph.ts @@ -644,7 +644,7 @@ export class Aleph implements IAleph { async #renderPage(url: RouterURL, nestedModules: string[]): Promise<[string, Record | null]> { let [html, data] = await this.#renderer.renderPage(url, nestedModules) for (const callback of this.#renderListeners) { - callback({ path: url.toString(), html, data }) + await callback({ path: url.toString(), html, data }) } return [buildHtml(html, !this.isDev), data] }