Able Pro
NextJS
NextJS
  • ✨Overview
  • 🌴Pre-requisites
  • 🚀Quick Start
  • 📂Folder Structure
  • 🌀State Management
  • 🔒Authentication
  • 📡Axios API Calls
  • 🌐Internationalization
  • 🛠️Project Configuration
  • 🎨Color Presets
  • 🎭Theme/Style Configuration
  • 📚How to
    • Login as First Page
    • Dashboard as First Page
    • Remove menu render from Backend
    • Render Menu from the backend
    • Remove Auth
  • 🖌️Figma
  • 🤝Integration
    • Seed
    • Comparison
  • 📦Dependencies
  • 🗓️Roadmap
  • 🆘Support
  • 📅Changelog
Powered by GitBook
On this page
  1. How to

Login as First Page

How to set login as First page instead landing

This section explains how to set the Login page as the default starting page, skipping the landing page, for cases where it is not needed.

  • Update the code at route full-version/src/app/page

src/app/page.tsx
// PROJECT IMPORTS
import GuestGuard from 'utils/route-guard/GuestGuard';
import LoginPage from './(auth)/login/page';

export default function Login() {
  return (
    <GuestGuard>
      <LoginPage />
    </GuestGuard>
  );
}
src/app/page.jsx
// PROJECT IMPORTS
import GuestGuard from 'utils/route-guard/GuestGuard';
import LoginPage from './(auth)/login/page';

export default function Login() {
  return (
    <GuestGuard>
      <LoginPage />
    </GuestGuard>
  );
}
PreviousHow toNextDashboard as First Page

Last updated 1 month ago

📚