fix(docker): 禁用Turbopack避免big.js序列化错误
This commit is contained in:
parent
73909d9d6d
commit
16a1b05f6d
@ -12,7 +12,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
# 禁用 Next.js 遥测,并注入占位环境变量以通过编译
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN npm run build
|
||||
RUN npm run build -- --no-turbopack
|
||||
|
||||
# 阶段 3:生产运行环境
|
||||
FROM node:20-alpine AS runner
|
||||
|
||||
@ -10,10 +10,14 @@ const nextConfig: NextConfig = {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
|
||||
experimental: {
|
||||
turbo: {
|
||||
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js'],
|
||||
},
|
||||
},
|
||||
|
||||
allowedDevOrigins: [
|
||||
'10.10.10.1', // 允许该IP访问
|
||||
// 'your-custom-domain.dev', // 如果有自定义域名也可以加在这里
|
||||
// '*.local-origin.dev' // 支持通配符
|
||||
'10.10.10.1',
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user