mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
🐛 fix: docker deploy REDIS_URL check (#11773)
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
import { defineConfig } from './src/libs/next/config/define-config';
|
||||
|
||||
const isVercel = !!process.env.VERCEL_ENV;
|
||||
|
||||
const nextConfig = defineConfig({
|
||||
experimental: {
|
||||
webpackBuildWorker: true,
|
||||
webpackMemoryOptimizations: true,
|
||||
},
|
||||
// Vercel serverless optimization: exclude musl binaries
|
||||
// Vercel uses Amazon Linux (glibc), not Alpine Linux (musl)
|
||||
// This saves ~45MB (29MB canvas-musl + 16MB sharp-musl)
|
||||
outputFileTracingExcludes: isVercel
|
||||
? {
|
||||
'*': [
|
||||
'node_modules/.pnpm/@napi-rs+canvas-*-musl*',
|
||||
'node_modules/.pnpm/@img+sharp-libvips-*musl*',
|
||||
],
|
||||
}
|
||||
: undefined,
|
||||
webpack: (webpackConfig, context) => {
|
||||
const { dev } = context;
|
||||
if (!dev) {
|
||||
|
||||
Reference in New Issue
Block a user