Next JS에서 next.config.js 파일을 조작하는 법 중 Redirects와 Rewrites를 알아보자. Next App 에서 next.config.js 파일을 가서 본다. 처음에는 reactStrictMode: true만 있을 텐데 아래와 같이 redirects함수를 async로 선언한다. source : '입력주소' destination : 'source 주소 입력하면 이동할 주소' premanet : true/false 캐싱 여부 source 주소 입력 -> destination 주소 이런 구조다. 서버를 실행하고 localhost:3000/hello를 입력하고 엔터를 누르면 이렇게 짠하고 /hello가 아닌 /bye로 향하게 된다. 이게 redirects다. source에 따라 원하는 ..