17 lines
700 B
TypeScript
17 lines
700 B
TypeScript
import type { NextConfig } from 'next'
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
images: { unoptimized: true },
|
|
eslint: { ignoreDuringBuilds: true },
|
|
typescript: { ignoreBuildErrors: true },
|
|
// better-sqlite3: 原生模块,必须 external
|
|
// ldapts: SSO 自动创建用户依赖 LLDAP 验证,缺少则新用户无法免登录进入系统
|
|
serverExternalPackages: ['better-sqlite3', 'ldapts'],
|
|
// 确保 fs.readFileSync 加载的文件也被追踪到 standalone 输出中
|
|
// 防止 Docker 镜像中 npm install --omit=dev 漏装时缺失依赖
|
|
outputFileTracingIncludes: {
|
|
'/**': ['./node_modules/echarts/dist/echarts.min.js'],
|
|
},
|
|
}
|
|
export default nextConfig
|