refactor: fix ci problem
This commit is contained in:
parent
a567834e45
commit
9fec5fc02f
@ -1,7 +1,7 @@
|
|||||||
import puppeteer from 'puppeteer';
|
import puppeteer from 'puppeteer';
|
||||||
import { jwtSign } from '../../middleware/auth';
|
import { jwtSign } from '../../middleware/auth';
|
||||||
import { SYSTEM_ROLES } from '../../../shared';
|
import { SYSTEM_ROLES } from '../../../shared';
|
||||||
import { settings } from '../settings';
|
import { env } from '../env';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* take a screenshot for website detail
|
* take a screenshot for website detail
|
||||||
@ -30,7 +30,7 @@ export async function screenshotWebsiteDetailImage(
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
await page.goto(
|
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',
|
waitUntil: 'networkidle2',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user