Next.js CI Build Caching

Installation
SKILL.md

Next.js CI Build Caching

Expert guidance on configuring CI build caching for Next.js — GitHub Actions, GitLab CI, CircleCI, and other providers to speed up builds.

@doc-version: 16.2.6

Core Concepts

Next.js เก็บ build cache ไว้ที่ .next/cache ซึ่งใช้ร่วมกันระหว่าง builds เพื่อเพิ่มความเร็ว CI workflow ต้อง persist directory นี้ระหว่าง builds

ถ้าไม่ config → จะเห็น "No Cache Detected" error และ build ช้าลง

Guidelines

1. Vercel

ไม่ต้องทำอะไร — cache ถูก configure อัตโนมัติ

2. GitHub Actions

Installs
–
First Seen
–
Next.js CI Build Caching — yuen30/my-skills