Pages Router
موجه الصفحات
GLS-000082
Definition
The original Next.js routing system based on files inside the /pages directory.
نظام التوجيه الأصلي في Next.js المعتمد على الملفات داخل مجلد /pages.
Why It Matters
Most existing Next.js tutorials and projects use Pages Router. Understanding it helps when reading older code or migrating to App Router.
معظم دروس ومشاريع Next.js الحالية تستخدم Pages Router. فهمه يساعد عند قراءة الكود القديم أو الترحيل إلى App Router.
Full Definition
Example Usage
“/pages/glossary/[slug].tsx in Pages Router is equivalent to /app/glossary/[slug]/page.tsx in App Router.”
“/pages/glossary/[slug].tsx في Pages Router يعادل /app/glossary/[slug]/page.tsx في App Router.”
AI Builder Tips
Avoid these mistakes when using Pages Router:
Mixing Pages Router and App Router conventions in the same project
Sign in to unlock guided AI explanations from AI Teacher.
Generate a Prompt
Copy this prompt and use it directly with any AI model — no setup needed.
Help me build a project using Pages Router. Explain: 1. What is Pages Router and why it matters 2. The core architecture and required tools 3. Step-by-step implementation plan 4. Common mistakes to avoid: Mixing Pages Router and App Router conventions in the same project 5. Best practices and production tips