diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index f536eb6..4210315 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -46,4 +46,4 @@ jobs: - name: Delete existing container run: docker rm -f polabo-fe || true - name: Run container - run: docker run -d -p 3000:3000 --name polabo-fe ${{ vars.DOCKER_IMAGE }} + run: docker run -d -p 3000:3000 --shm-size=1g --name polabo-fe ${{ vars.DOCKER_IMAGE }} diff --git a/src/app/board/api/screenshot/route.ts b/src/app/board/api/screenshot/route.ts index 000114f..e28c1e9 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: [ + '--no-sandbox', + '--disable-setuid-sandbox', + '--disable-gpu', + '--no-zygote', + '--no-first-run', + '--disable-default-apps', + ], + defaultViewport: null, + }) const page = await browser.newPage() await page.setViewport({ width: 1080,