드디어 나도 해본다! 하지만 시작과 동시에 무슨 에러람..?
Next의 Routing 기능들
Server Components와 Client Components는 다음과 같은 차이가 있다.
Server Actions는 서버에서 실행되는 함수이기 때문에 사용자에게 노출되지 않는다
Next에서는 주로, NextAuth라는 라이브러리를 사용해서 인증기능을 구현한다. 최근에는 NextAuth는 5버전으로 업데이트가 되면서 Auth.js로 명칭이 바뀌었다. 이 라이브러리는 SvelteKit, SolidStart 등 Next외의 라이브러리도 지원한다
Next의 공식문서에서 Next의 함수를 보면, Server Components에서 사용되는 functions(함수)와 Client Components에서 사용되는 hooks(훅)으로 분리되어 있는 것 같다.
Next에서는 4가지의 캐싱 전략을 제공한다.
Next의 App router는 2가지 배포 모드가 있다. 기본적으로는 Dynamic Mode이고 Static Mode는 따로 설정을 해주어야 한다. 과거의 Page Router 시절에는 ISR(Incremental Static Regeneration) 모드도 있었다