diff --git a/Dockerfile b/Dockerfile index 41761c0..84b6df3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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:生产运行环境 diff --git a/next.config.ts b/next.config.ts index 3270180..460c9ad 100644 --- a/next.config.ts +++ b/next.config.ts @@ -10,12 +10,6 @@ const nextConfig: NextConfig = { ignoreBuildErrors: true, }, - experimental: { - turbo: { - resolveExtensions: ['.tsx', '.ts', '.jsx', '.js'], - }, - }, - allowedDevOrigins: [ '10.10.10.1', ], diff --git a/package.json b/package.json index 0981652..7671e97 100644 --- a/package.json +++ b/package.json @@ -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",