From 260513ebaa033348e0d0494c8a9b38df8cd11aea Mon Sep 17 00:00:00 2001 From: Richard R Date: Sun, 15 Feb 2026 11:33:46 -0700 Subject: [PATCH] ci(config): configure CI environment and optimize function memory - Set FFMPEG_BIN and FFPROBE_BIN environment variables in Playwright workflow - Reduce memory allocation for audiobook and whisper API routes to 1024MB --- .github/workflows/playwright.yml | 3 +++ vercel.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index bd4873b..38c6b8f 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -8,6 +8,9 @@ jobs: e2e-testing: timeout-minutes: 60 runs-on: ubuntu-latest + env: + FFMPEG_BIN: /usr/bin/ffmpeg + FFPROBE_BIN: /usr/bin/ffprobe steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/vercel.json b/vercel.json index 553c3cf..45a0fc1 100644 --- a/vercel.json +++ b/vercel.json @@ -2,10 +2,10 @@ "$schema": "https://openapi.vercel.sh/vercel.json", "functions": { "app/api/audiobook/route.ts": { - "memory": 3009 + "memory": 1024 }, "app/api/whisper/route.ts": { - "memory": 3009 + "memory": 1024 } } }