fix(docker): 降级Next.js至15.x以使用webpack替代Turbopack
This commit is contained in:
parent
17791eb980
commit
dfd02d3e4b
@ -12,7 +12,6 @@ COPY --from=deps /app/node_modules ./node_modules
|
|||||||
COPY . .
|
COPY . .
|
||||||
# 禁用 Next.js 遥测,并注入占位环境变量以通过编译
|
# 禁用 Next.js 遥测,并注入占位环境变量以通过编译
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV NEXT_DISABLE_TURBOPACK=1
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# 阶段 3:生产运行环境
|
# 阶段 3:生产运行环境
|
||||||
|
|||||||
@ -10,12 +10,6 @@ const nextConfig: NextConfig = {
|
|||||||
ignoreBuildErrors: true,
|
ignoreBuildErrors: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
experimental: {
|
|
||||||
turbo: {
|
|
||||||
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
allowedDevOrigins: [
|
allowedDevOrigins: [
|
||||||
'10.10.10.1',
|
'10.10.10.1',
|
||||||
],
|
],
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"dotenv": "^17.4.2",
|
"dotenv": "^17.4.2",
|
||||||
"drizzle-orm": "^0.45.2",
|
"drizzle-orm": "^0.45.2",
|
||||||
"lucide-react": "^1.11.0",
|
"lucide-react": "^1.11.0",
|
||||||
"next": "16.2.4",
|
"next": "15.2.0",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"postgres": "^3.4.9",
|
"postgres": "^3.4.9",
|
||||||
"react": "19.2.4",
|
"react": "19.2.4",
|
||||||
@ -47,7 +47,7 @@
|
|||||||
"autoprefixer": "^10.5.0",
|
"autoprefixer": "^10.5.0",
|
||||||
"drizzle-kit": "^0.31.10",
|
"drizzle-kit": "^0.31.10",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "16.2.4",
|
"eslint-config-next": "15.2.0",
|
||||||
"postcss": "^8.5.12",
|
"postcss": "^8.5.12",
|
||||||
"tailwindcss": "^3.4.17",
|
"tailwindcss": "^3.4.17",
|
||||||
"tsx": "^4.21.0",
|
"tsx": "^4.21.0",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user