Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Refactor 'creating page' query #270

Merged
merged 2 commits into from Jun 19, 2021
Merged

Conversation

hmu332233
Copy link
Contributor

빌드 단계에서 포스팅 페이지 생성시 js 코드로 필터링하던 부분을
pages/index.js에서 사용되는 query와 동일한 query로 변경하고
이전, 다음글 로직도 query로 변경했습니다.

기능상 달라지는 것도, 빌드 속도가 의미있는만큼 달라지는 것도 아니지만
불필요한 filter를 없애고,
previous, next에 대해서 필요한 값만 사용될 수 있도록 했습니다.

@JaeYeopHan
Copy link
Owner

coooooool 👍

@JaeYeopHan JaeYeopHan merged commit fb16fd4 into JaeYeopHan:master Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants