> For the complete documentation index, see [llms.txt](https://book.hajoeun.dev/friendly-next-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.hajoeun.dev/friendly-next-js/part-2/next.js-1/folders.md).

# folders

### public 폴더

`public` 폴더는 선택 사항입니다. 이미지, 글꼴 등의 정적 자산을 저장하는 용도로 사용됩니다. `public` 폴더 내의 파일은 기본 URL(`/`)로 시작하는 경로로 참조할 수 있습니다.

`robots.txt`, `favicon.ico` 등과 같은 정적 메타데이터 파일의 경우 `app` 디렉토리 아래에 둡니다.

### app 폴더

App Router를 위한 폴더입니다. 폴더 아래에 생성된 폴더, 파일의 경로에 따라 서비스의 URL 경로가 정해집니다. (참고: [라우팅](/friendly-next-js/next.js-1/undefined-1.md))

### src 폴더

Next.js는 루트에 바로 `app` 폴더를 두는 대신 `src` 폴더에 두는 방식도 지원합니다. `src` 폴더를 사용하려면 `app` 폴더를 `src/app` 로 옮기기만 하면 됩니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.hajoeun.dev/friendly-next-js/part-2/next.js-1/folders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
