diff --git a/Dockerfile b/Dockerfile index 2a42dcdc..5c134d4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,9 +44,9 @@ FROM base AS builder # Limit memory to 1GB to prevent ResourceExhausted in combination with worker limits ENV NODE_OPTIONS="--max-old-space-size=1024" -# Force Turbopack (Rust/Rayon) and Node.js to use strictly 1 thread to avoid starving the Gitea Runner VPS CPU -ENV RAYON_NUM_THREADS=1 -ENV UV_THREADPOOL_SIZE=1 +# Force Turbopack (Rust/Rayon) and Node.js to use strictly 3 threads to avoid starving the Gitea Runner VPS CPU +ENV RAYON_NUM_THREADS=3 +ENV UV_THREADPOOL_SIZE=3 RUN pnpm build diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c7..c4b7818f 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/next.config.mjs b/next.config.mjs index 6194fa9a..4a325f98 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -13,7 +13,7 @@ const nextConfig = { }, experimental: { optimizePackageImports: ['lucide-react', 'framer-motion', '@/components/ui'], - cpus: 1, + cpus: 3, workerThreads: false, }, reactStrictMode: false,