diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index e802824..fad1269 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -3,7 +3,7 @@ name: Deploy to AWS EC2 on: push: branches: - - develop + - feature/save-screenshot release: types: [published] diff --git a/src/app/board/api/screenshot/route.ts b/src/app/board/api/screenshot/route.ts index 000114f..9d95328 100644 --- a/src/app/board/api/screenshot/route.ts +++ b/src/app/board/api/screenshot/route.ts @@ -13,7 +13,17 @@ type RequestBodyType = { } const initializeBrowser = async () => { - const browser = await puppeteer.launch({ args: ['--no-sandbox'] }) + const browser = await puppeteer.launch({ + args: [ + '--disable-gpu', + '--disable-dev-shm-usage', + '--disable-setuid-sandbox', + '--no-first-run', + '--no-sandbox', + '--no-zygote', + '--single-process', + ], + }) const page = await browser.newPage() await page.setViewport({ width: 1080,