This commit is contained in:
@ -411,11 +411,10 @@ export const GET: APIRoute = async ({ request }) => {
|
||||
|
||||
const htmlContent = await generateResumeHTML(resumeData);
|
||||
|
||||
// Launch browser with Playwright
|
||||
const browser = await chromium.launch({
|
||||
headless: true,
|
||||
executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH ||
|
||||
(process.env.NODE_ENV === "production" ? "/usr/bin/google-chrome" : undefined),
|
||||
(process.env.NODE_ENV === "production" ? "/usr/bin/chromium-browser" : undefined),
|
||||
args: [
|
||||
'--no-sandbox',
|
||||
'--disable-setuid-sandbox',
|
||||
|
Reference in New Issue
Block a user