You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [#123] docs: use-amp 번역 (#128)
* [#125] docs: routing 번역 (#129)
* [no-issue] fix: 잘못된 들여쓰기 수정 (#136)
* [no-issue] fix: 일관성 및 잘못된 들여쓰기 수정 (#137)
* [no-issue] fix: 잘못 입력된 링크 수정 (#138)
* [no-issue] fix: 잘못된 들여쓰기 수정 (#139)
* [no-issue] fix: 예시 코드 정리 (#140)
* [no-issue] fix: 잘못 입력된 링크 수정 & 용어 수정 (#141)
---------
Co-authored-by: White <[email protected]>
Co-authored-by: 김석진(poki) <[email protected]>
Copy file name to clipboardExpand all lines: pages/docs/app/building-your-application/rendering/composition-patterns.mdx
+2-4
Original file line number
Diff line number
Diff line change
@@ -417,9 +417,7 @@ Client와 Server Components를 혼합할 때, UI를 컴포넌트 트리로 시
417
417
이러한 클라이언트 하위 트리 내에서는 여전히 Server Components를 중첩하거나 Server Actions를 호출할 수 있지만, 다음 사항을 염두에 두어야 합니다:
418
418
419
419
- 요청-응답 라이프사이클 동안 코드가 서버에서 클라이언트로 이동합니다. 클라이언트에서 서버의 데이터나 리소스에 접근해야 하는 경우, **새로운** 요청을 서버로 보내는 것이지, 왔다 갔다 하는 것이 아닙니다.
420
-
- 새로운 요청이 서버로 전송되면, 모든 Server Components가 먼저 렌더링됩니다. 클라이언트 내에서 중첩된 Server Components를 포함합니다. 렌더링된 결과([RSC Payload](/docs/app/building-your-application/rendering/server-components#what-is-the-react-server
421
-
422
-
-component-payload-rsc))에는 Client Components의 위치에 대한 참조가 포함됩니다. 그런 다음, 클라이언트에서 React는 RSC Payload를 사용하여 Server와 Client Components를 단일 트리로 조정합니다.
420
+
- 새로운 요청이 서버로 전송되면, 모든 Server Components가 먼저 렌더링됩니다. 클라이언트 내에서 중첩된 Server Components를 포함합니다. 렌더링된 결과([RSC Payload](/docs/app/building-your-application/rendering/server-components#what-is-the-react-server-component-payload-rsc))에는 Client Components의 위치에 대한 참조가 포함됩니다. 그런 다음, 클라이언트에서 React는 RSC Payload를 사용하여 Server와 Client Components를 단일 트리로 조정합니다.
423
421
424
422
{/* Diagram */}
425
423
@@ -560,5 +558,5 @@ export default function Page() {
560
558
561
559
> **참고**:
562
560
>
563
-
> - 부모 컴포넌트가 다시 렌더링될 때 중첩된 자식 컴포넌트가 다시 렌더링되는 것을 방지하기 위해 "내용을 위로 올리는" 패턴이 사용되었습니다.
561
+
> - 부모 컴포넌트가 다시 렌더링될 때 중첩된 자식 컴포넌트가 다시 렌더링되는 것을 방지하기 위해 "lifting content up" 패턴이 사용되었습니다.
564
562
> -`children` prop에 국한되지 않습니다. JSX를 전달하는 데 어떤 prop이든 사용할 수 있습니다.
Copy file name to clipboardExpand all lines: pages/docs/app/building-your-application/routing/parallel-routes.mdx
+1-4
Original file line number
Diff line number
Diff line change
@@ -222,10 +222,7 @@ export default function Layout({ children }) {
222
222
Parallel Routes는 [Intercepting Routes](/docs/app/building-your-application/routing/intercepting-routes)와 함께 사용하여 딥 링크를 지원하는 모달을 생성할 수 있습니다. 이를 통해 모달을 구축할 때 일반적으로 발생하는 문제를 해결할 수 있습니다:
Copy file name to clipboardExpand all lines: pages/docs/app/building-your-application/routing/route-handlers.mdx
+3-7
Original file line number
Diff line number
Diff line change
@@ -212,9 +212,7 @@ import { headers } from 'next/headers'
212
212
213
213
exportasyncfunction GET(request:Request) {
214
214
const headersList =headers()
215
-
const referer =headersList.get('refer
216
-
217
-
er')
215
+
const referer =headersList.get('referer')
218
216
219
217
returnnewResponse('Hello, Next.js!', {
220
218
status: 200,
@@ -510,9 +508,7 @@ export async function GET(request) {
510
508
511
509
> **알아두면 좋은 점**:
512
510
>
513
-
> - 여러 Route Handlers에 CORS 헤더를 추가하려면 [Middleware](/docs/app/building-your-application/routing/middleware#cors) 또는 [`
514
-
515
-
next.config.js` 파일](/docs/app/api-reference/next-config-js/headers#cors)을 사용할 수 있습니다.
511
+
> - 여러 Route Handlers에 CORS 헤더를 추가하려면 [Middleware](/docs/app/building-your-application/routing/middleware#cors) 또는 [`next.config.js` 파일](/docs/app/api-reference/next-config-js/headers#cors)을 사용할 수 있습니다.
516
512
517
513
> - 또는 [CORS 예제](https://github.com/vercel/examples/blob/main/edge-functions/cors/lib/cors.ts) 패키지를 참조하세요.
518
514
@@ -558,7 +554,7 @@ export async function POST(request) {
558
554
559
555
### Non-UI Responses
560
556
561
-
Route Handlers를 사용하여 UI가 아닌 콘텐츠를 반환할 수 있습니다. [`sitemap.xml`](/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts), [`robots.txt`](/docs/app/api-reference/file-conventions/metadata/robots#generate-a-robots-file), [`appicons`](/docs/app/api-reference/file-conventions/metadata/app-icons#generate-icons-using-code-js-ts-tsx), [open graph images](/docs/app/api-reference/file-conventions/metadata/opengraph-image) 등은 모두 기본적으로 지원됩니다.
557
+
Route Handlers를 사용하여 UI가 아닌 콘텐츠를 반환할 수 있습니다. [`sitemap.xml`](/docs/app/api-reference/file-conventions/metadata/sitemap#generating-a-sitemap-using-code-js-ts), [`robots.txt`](/docs/app/api-reference/file-conventions/metadata/robots#generate-a-robots-file), [`app icons`](/docs/app/api-reference/file-conventions/metadata/app-icons#generate-icons-using-code-js-ts-tsx), [`open graph images`](/docs/app/api-reference/file-conventions/metadata/opengraph-image) 등은 모두 기본적으로 지원됩니다.
> AMP support is one of our advanced features, you can [read more about AMP here](/docs/pages/building-your-application/configuring/amp).
15
+
> AMP 지원은 고급 기능 중 하나이며, [여기에서 AMP에 대해 더 읽어보실 수 있습니다](/docs/pages/building-your-application/configuring/amp).
14
16
15
-
To enable AMP, add the following config to your page:
17
+
AMP를 활성화하려면, 다음과 같은 설정을 페이지에 추가하세요:
16
18
17
19
```jsx filename="pages/index.js"
18
20
exportconstconfig= { amp:true }
19
21
```
20
22
21
-
The `amp`config accepts the following values:
23
+
`amp`설정은 다음의 값을 허용합니다:
22
24
23
-
-`true` - The page will be AMP-only
24
-
-`'hybrid'` - The page will have two versions, one with AMP and another one with HTML
25
+
-`true` - 페이지가 AMP-only 상태가 됩니다
26
+
-`hybrid` - 페이지에 AMP 버전과 HTML 버전이 모두 존재하게 됩니다
25
27
26
-
To learn more about the `amp`config, read the sections below.
28
+
`amp`구성에 대해 더 알아보려면, 아래 섹션을 읽어보세요.
27
29
28
30
## AMP First Page
29
31
30
-
Take a look at the following example:
32
+
다음 예제를 살펴보세요:
31
33
32
34
```jsx filename="pages/about.js"
33
35
exportconstconfig= { amp:true }
@@ -39,15 +41,15 @@ function About(props) {
39
41
exportdefaultAbout
40
42
```
41
43
42
-
The page above is an AMP-only page, which means:
44
+
위의 예시 페이지는 AMP-only 페이지로, 다음을 의미합니다:
43
45
44
-
-The page has no Next.js or React client-side runtime
45
-
-The page is automatically optimized with [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer), an optimizer that applies the same transformations as AMP caches (improves performance by up to 42%)
46
-
-The page has a user-accessible (optimized) version of the page and a search-engine indexable (unoptimized) version of the page
46
+
-페이지에 Next.js 또는 React 클라이언트 측 런타임이 없습니다
47
+
-페이지는 자동으로 [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer)로 최적화되며, 이 최적화 도구는 AMP 캐시와 동일한 변환을 적용합니다(성능이 최대 42% 향상됨)
48
+
-페이지는 사용자 접근이 가능한 최적화된 버전과 검색 엔진에 인덱싱 가능한 최적화되지 않은 버전을 갖습니다
47
49
48
50
## Hybrid AMP Page
49
51
50
-
Take a look at the following example:
52
+
다음 예제를 살펴보세요:
51
53
52
54
```jsx filename="pages/about.js"
53
55
import { useAmp } from'next/amp'
@@ -78,9 +80,9 @@ function About(props) {
78
80
exportdefaultAbout
79
81
```
80
82
81
-
The page above is a hybrid AMP page, which means:
83
+
위의 예시 페이지는 Hybrid AMP 페이지로, 다음을 의미합니다:
82
84
83
-
-The page is rendered as traditional HTML (default) and AMP HTML (by adding `?amp=1`to the URL)
84
-
-The AMP version of the page only has valid optimizations applied with AMP Optimizer so that it is indexable by search-engines
85
+
-페이지는 기존의 HTML(기본값)과 AMP HTML(URL에 `?amp=1`추가하는 것을 통해)로 렌더링됩니다
86
+
-페이지의 AMP 버전은 AMP Optimizer로 적용된 유효한 최적화만 적용되어 검색 엔진에 인덱싱됩니다
85
87
86
-
The page uses `useAmp` to differentiate between modes, it's a [React Hook](https://react.dev/reference/react) that returns `true` if the page is using AMP, and `false` otherwise.
88
+
이 페이지는 `useAmp`를 사용하여 모드를 구분하며, 이 함수(`useAmp`)는 페이지가 AMP를 사용하는 경우 `true`를, 그렇지 않은 경우 `false`를 반환하는 [React Hook](https://react.dev/reference/react)입니다.
Copy file name to clipboardExpand all lines: pages/docs/pages/building-your-application/Routing.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,4 @@ title: Routing
3
3
description: Learn the fundamentals of routing for front-end applications with the Pages Router.
4
4
---
5
5
6
-
The Pages Router has a file-system based router built on concepts of pages. When a file is added to the `pages`directory it's automatically available as a route. Learn more about routing in the Pages Router:
6
+
Pages Router는 페이지 컨셉을 기반으로 한 파일 시스템 라우터를 가지고 있습니다. `pages`디렉토리에 파일을 추가하면 자동으로 해당 파일이 경로로 사용될 수 있습니다. Pages Router의 라우팅에 대해 더 알아보세요:
0 commit comments