Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/docs/ko/reference/routing-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const { post } = Astro.props;
다음 예시는 150개의 항목을 가져와 `paginate` 함수에 전달하고, 빌드 타임에 페이지당 10개의 항목을 표시할 정적으로 사전 렌더링된 페이지를 생성합니다:

```astro title="src/pages/pokemon/[page].astro"
---
export async function getStaticPaths({ paginate }) {
// fetch(), getCollection() 등으로 데이터 로드
const response = await fetch(`https://pokeapi.co/api/v2/pokemon?limit=150`);
Expand All @@ -194,6 +195,7 @@ export async function getStaticPaths({ paginate }) {
}

const { page } = Astro.props;
---
```

`paginate()`는 다음과 같은 인수를 가집니다:
Expand Down