mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
🐛 fix: remove ffmpeg-static from outputFileTracingExcludes (#12844)
This commit is contained in:
+2
-5
@@ -3,16 +3,13 @@ import { defineConfig } from './src/libs/next/config/define-config';
|
||||
const isVercel = !!process.env.VERCEL_ENV;
|
||||
|
||||
const vercelConfig = {
|
||||
// Vercel serverless optimization: exclude musl binaries and ffmpeg from all routes
|
||||
// Vercel serverless optimization: exclude musl binaries from all routes
|
||||
// Vercel uses Amazon Linux (glibc), not Alpine Linux (musl)
|
||||
// ffmpeg-static (~76MB) is only needed by /api/webhooks/video/* route
|
||||
// This saves ~120MB (29MB canvas-musl + 16MB sharp-musl + 76MB ffmpeg)
|
||||
// This saves ~45MB (29MB canvas-musl + 16MB sharp-musl) per serverless function
|
||||
outputFileTracingExcludes: {
|
||||
'*': [
|
||||
'node_modules/.pnpm/@napi-rs+canvas-*-musl*',
|
||||
'node_modules/.pnpm/@img+sharp-libvips-*musl*',
|
||||
'node_modules/ffmpeg-static/**',
|
||||
'node_modules/.pnpm/ffmpeg-static*/**',
|
||||
// Exclude SPA/desktop/mobile build artifacts from serverless functions
|
||||
'public/spa/**',
|
||||
'dist/desktop/**',
|
||||
|
||||
Reference in New Issue
Block a user