CSR, SSR (SSG, ISR (next.js))

CSR : Client Side Rendering

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ed972e31-f91c-46ff-bc68-7ccee39d91a0/Untitled.png

결론

우리는 FE 코드를 개발하고 build(index.html + bundle.js)해서 서버로 배포한다.

유저는 브라우저 접속시 서버로 사이트를 보내달라는 요청을 하고, 서버는 빈 index.html을 반환한다.

브라우저는 html을 파싱하며 script 태그를 만나고 js파일을 요청한다(서버)

서버는 js를 응답하고 유저는 그때가 되어서야 페이지를 확인할 수 있음

SSR : Server Side Rendering

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c387b91a-3fe5-4839-a1f4-94df10dba4b6/Untitled.png