
발랑 리뷰
ProductDetailPage 에서 components 폴더를 만들고, ProductDetailInfo, ProductDetailMainImages, 등등을 분리하는
https://velog.io/@mpfo0106/git-branch-%EB%B0%8F-merge-FullRequest-%EC%8B%A4%EC%8A%B5
https://velog.io/@mpfo0106/%ED%83%80%EC%9E%85%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EA%B8%B0%EC%B4%88
const options = {
method: "GET",
headers: {
accept: "application/json",
Authorization: `Bearer ${TMDB_ACCESS_TOKEN}`,
},
};
const getMovies = async (type) => {
const endpoints = {
nowPlaying:
"https://api.themoviedb.org/3/movie/now_playing?language=ko-KR®ion=KR&page=1",
topRated:
"https://api.themoviedb.org/3/movie/top_rated?language=ko-KR®ion=KR&page=1",
};
const response = await fetch(endpoints[type], options);
const data = await response.json();
const movies = data.results;
return movies;
};
const tmdbClient = axios.create({
baseURL: "https://api.themoviedb.org/3/movie",
headers: {
accept: "application/json",
Authorization: `Bearer ${TMDB_ACCESS_TOKEN}`,
},
});
https://velog.io/@mpfo0106/%EB%A6%AC%EC%95%A1%ED%8A%B8-useRef
https://velog.io/@mpfo0106/Next-js-%EA%B5%AC%EC%A1%B0%EC%9E%A1%EA%B8%B0
https://velog.io/@mpfo0106/Next-js-%EC%97%90%EC%84%9C-Redux
https://velog.io/@mpfo0106/%EC%BF%A0%ED%82%A4-%EC%9D%B8%EC%A6%9D