frontend

Create an optimized production build of your Next.js application.

php artisan npx next build

Syntax

Syntax
npx next build

Explanation

Generates an optimized production build with automatic code splitting, static generation (SSG), and server-side rendering (SSR) pages. Output goes to .next/ directory. Use next start to serve.

Example

Example
npx next build

Explanation

Generates an optimized production build with automatic code splitting, static generation (SSG), and server-side rendering (SSR) pages. Output goes to .next/ directory. Use next start to serve.