frontend

Start the Next.js development server with automatic compilation and routing.

php artisan npx next dev

Syntax

Syntax
npx next dev [-p port]

Explanation

Starts Next.js dev server with instant compilation, hot reload, and automatic routing based on the file system. The App Router reads from app/ directory. Supports API routes, server components, and middleware.

Example

Example
npx next dev -p 3000

Explanation

Starts Next.js dev server with instant compilation, hot reload, and automatic routing based on the file system. The App Router reads from app/ directory. Supports API routes, server components, and middleware.