fix: build pakai node 22 + sharp

This commit is contained in:
Gilang Aryo
2026-11-27 17:00:17 +07:00
parent 7cb1ebafe0
commit 348877a82e
2 changed files with 5 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ WORKDIR /app
COPY . .
# postinstall menjalankan `fumadocs-mdx` (butuh source.config.ts & content/)
RUN npm ci || npm install
# sharp untuk optimasi gambar Next.js (versi Linux/Alpine)
RUN npm install --no-save sharp
ENV NEXT_TELEMETRY_DISABLED=1
ARG SITE_URL

View File

@@ -25,5 +25,8 @@
"postcss": "^8.5.0",
"tailwindcss": "^4.1.0",
"typescript": "^5.8.0"
},
"engines": {
"node": ">=20"
}
}