From 9fec5fc02fe3686e962e0b234da7d62cf311685c Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 13 Jan 2024 23:48:41 +0800 Subject: [PATCH] refactor: fix ci problem --- src/server/utils/screenshot/website.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/utils/screenshot/website.ts b/src/server/utils/screenshot/website.ts index 907a8a4..cddb102 100644 --- a/src/server/utils/screenshot/website.ts +++ b/src/server/utils/screenshot/website.ts @@ -1,7 +1,7 @@ import puppeteer from 'puppeteer'; import { jwtSign } from '../../middleware/auth'; import { SYSTEM_ROLES } from '../../../shared'; -import { settings } from '../settings'; +import { env } from '../env'; /** * take a screenshot for website detail @@ -30,7 +30,7 @@ export async function screenshotWebsiteDetailImage( ]); await page.goto( - `http://127.0.0.1:${settings.port}/website/${websiteId}?hideHeader`, + `http://127.0.0.1:${env.port}/website/${websiteId}?hideHeader`, { waitUntil: 'networkidle2', }