From 601cfe74c9a9970a9c2bf94f1b83bbe6be67a5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=9D=EC=A7=84?= Date: Fri, 27 Sep 2024 00:11:15 +0900 Subject: [PATCH] =?UTF-8?q?[no-issue]=20fix:=20=EC=9D=BC=EA=B4=80=EC=84=B1?= =?UTF-8?q?=20=EB=B0=8F=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EB=93=A4=EC=97=AC?= =?UTF-8?q?=EC=93=B0=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../routing/route-handlers.mdx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pages/docs/app/building-your-application/routing/route-handlers.mdx b/pages/docs/app/building-your-application/routing/route-handlers.mdx index 0c00029..4efb1f5 100644 --- a/pages/docs/app/building-your-application/routing/route-handlers.mdx +++ b/pages/docs/app/building-your-application/routing/route-handlers.mdx @@ -212,9 +212,7 @@ import { headers } from 'next/headers' export async function GET(request: Request) { const headersList = headers() - const referer = headersList.get('refer - -er') + const referer = headersList.get('referer') return new Response('Hello, Next.js!', { status: 200, @@ -510,9 +508,7 @@ export async function GET(request) { > **알아두면 좋은 점**: > -> - 여러 Route Handlers에 CORS 헤더를 추가하려면 [Middleware](/docs/app/building-your-application/routing/middleware#cors) 또는 [` - -next.config.js` 파일](/docs/app/api-reference/next-config-js/headers#cors)을 사용할 수 있습니다. +> - 여러 Route Handlers에 CORS 헤더를 추가하려면 [Middleware](/docs/app/building-your-application/routing/middleware#cors) 또는 [`next.config.js` 파일](/docs/app/api-reference/next-config-js/headers#cors)을 사용할 수 있습니다. > - 또는 [CORS 예제](https://github.com/vercel/examples/blob/main/edge-functions/cors/lib/cors.ts) 패키지를 참조하세요. @@ -558,7 +554,7 @@ export async function POST(request) { ### Non-UI Responses -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) 등은 모두 기본적으로 지원됩니다. +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) 등은 모두 기본적으로 지원됩니다. ```ts filename="app/rss.xml/route.ts" switcher export async function GET() {