Instruction: Explain the significance and function of the 'pages' directory in Next.js.
Context: This question tests the candidate's familiarity with the structure of Next.js projects and the convention-over-configuration approach.
medium