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
This commit is contained in:
parent
1f4794a706
commit
260513ebaa
2 changed files with 5 additions and 2 deletions
3
.github/workflows/playwright.yml
vendored
3
.github/workflows/playwright.yml
vendored
|
|
@ -8,6 +8,9 @@ jobs:
|
||||||
e2e-testing:
|
e2e-testing:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
FFMPEG_BIN: /usr/bin/ffmpeg
|
||||||
|
FFPROBE_BIN: /usr/bin/ffprobe
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||||
"functions": {
|
"functions": {
|
||||||
"app/api/audiobook/route.ts": {
|
"app/api/audiobook/route.ts": {
|
||||||
"memory": 3009
|
"memory": 1024
|
||||||
},
|
},
|
||||||
"app/api/whisper/route.ts": {
|
"app/api/whisper/route.ts": {
|
||||||
"memory": 3009
|
"memory": 1024
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue