가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

Next.js 면접 질문과 답변

Ques 6. What is the difference between 'getServerSideProps' and 'getStaticProps'?

'getServerSideProps' fetches data on every request, while 'getStaticProps' fetches data at build time. 'getStaticProps' is suitable for static content that does not change often.

도움이 되었나요? Add Comment View Comments
 

Ques 7. Explain how to handle dynamic routes in Next.js.

Dynamic routes in Next.js are defined using square brackets in the file name, like '[id].js'. You can use the 'getStaticPaths' and 'getStaticProps' functions to fetch data for dynamic routes.

도움이 되었나요? Add Comment View Comments
 

Ques 8. What is the purpose of the '_app.js' file in Next.js?

The '_app.js' file in Next.js is used to customize the default 'App' component. It is commonly used for persisting layout between pages.

도움이 되었나요? Add Comment View Comments
 

Ques 9. How can you add custom headers to a Next.js response?

You can add custom headers to a Next.js response using the 'res' object in 'getServerSideProps' or by using a custom server.

도움이 되었나요? Add Comment View Comments
 

Ques 10. Explain the purpose of the 'public' directory in Next.js.

The 'public' directory in Next.js is used for serving static assets like images, fonts, and other files. Contents of this directory are served at the root level of the application.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.