fix(docker): 降级Next.js至15.x以使用webpack替代Turbopack

This commit is contained in:
kennethcheng 2026-05-03 15:17:48 +08:00
parent 17791eb980
commit dfd02d3e4b
3 changed files with 2 additions and 9 deletions

View File

@ -12,7 +12,6 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
# 禁用 Next.js 遥测,并注入占位环境变量以通过编译
ENV NEXT_TELEMETRY_DISABLED=1
ENV NEXT_DISABLE_TURBOPACK=1
RUN npm run build
# 阶段 3生产运行环境

View File

@ -10,12 +10,6 @@ const nextConfig: NextConfig = {
ignoreBuildErrors: true,
},
experimental: {
turbo: {
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js'],
},
},
allowedDevOrigins: [
'10.10.10.1',
],

View File

@ -25,7 +25,7 @@
"dotenv": "^17.4.2",
"drizzle-orm": "^0.45.2",
"lucide-react": "^1.11.0",
"next": "16.2.4",
"next": "15.2.0",
"next-themes": "^0.4.6",
"postgres": "^3.4.9",
"react": "19.2.4",
@ -47,7 +47,7 @@
"autoprefixer": "^10.5.0",
"drizzle-kit": "^0.31.10",
"eslint": "^9",
"eslint-config-next": "16.2.4",
"eslint-config-next": "15.2.0",
"postcss": "^8.5.12",
"tailwindcss": "^3.4.17",
"tsx": "^4.21.0",