diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 2977d65..296114e 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -126,6 +126,7 @@ class Puppeteer extends Service { render = async (content: string, callback?: RenderCallback) => { const page = await this.page() + await page.goto(pathToFileURL(resolve(__dirname, '../index.html')).href) if (content) await page.setContent(content) callback ||= async (_, next) => page.$('body').then(next)