🐛 fix: docker deploy REDIS_URL check (#11773)

This commit is contained in:
YuTengjing
2026-01-24 18:04:45 +08:00
committed by GitHub
parent 113b491dc7
commit a9702bf3a0
18 changed files with 284 additions and 291 deletions
+13
View File
@@ -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) {