Skip to content

Commit

Permalink
i18n(ko-KR): update routing-reference.mdx (#10357)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan <[email protected]>
  • Loading branch information
jsparkdev and yanthomasdev authored Dec 13, 2024
1 parent 90448b0 commit c1e5964
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit c1e5964

Please sign in to comment.