This commit is contained in:
@ -327,7 +327,20 @@ export const GET: APIRoute = async ({ request }) => {
|
||||
|
||||
const browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
defaultViewport: null,
|
||||
executablePath:
|
||||
process.env.NODE_ENV === "production"
|
||||
? "/usr/bin/google-chrome"
|
||||
: undefined,
|
||||
args: [
|
||||
"--no-sandbox",
|
||||
"--disable-setuid-sandbox",
|
||||
"--disable-dev-shm-usage",
|
||||
"--disable-accelerated-2d-canvas",
|
||||
"--no-first-run",
|
||||
"--no-zygote",
|
||||
"--disable-gpu",
|
||||
],
|
||||
});
|
||||
|
||||
const page = await browser.newPage();
|
||||
|
Reference in New Issue
Block a user