Next.js Application
Next.js 15+ App Router configured with React 19, Tailwind CSS, and shared packages.
Next.js in Morax
Morax scaffolds Next.js 15+ with the App Router inside the apps/web workspace. It comes pre-configured with React 19, Tailwind CSS v4, Lucide icons, and zero-build symlinks to your shared monorepo packages.
Application Layout
The Next.js app adopts a modular feature structure where business logic is separated from routes:
Consuming Shared Packages
Because Morax links workspace packages through pnpm symlinks, you can import components from @workspace/ui or shared packages directly with full TypeScript autocomplete:
Server & Client Boundaries
All shared packages in Morax are compiled as ES modules. Server Components run purely on the server, while interactive client components require the 'use client' directive at the component boundary.
Route Handlers & Server Actions
For lightweight API routes that need direct database access, you can import your shared database schema and query helpers inside Next.js Route Handlers: