next build

built-in
0.0% Savings
0 Commands
0 Tokens saved
2 Tests

Install

tokf install fa58d3982db6aca7bfeec500f9e0a611b6077627b9f0858742bc980cf2a72b7d
Safety checks passed

Filter definition

command = "next build"
description = "Strip info lines and telemetry; show build output and errors"
skip = [
  "^info ",
  "^Attention: Next\\.js now collects",
  "^\\s*\\$\\s*next build",
  "^\\s*telemetry",
]

[on_success]
output = "{output}"

[on_failure]
tail = 20

Examples

build error shows tail ~82 tokens → ~58 tokens (29% saved)
Raw output
info  - Loaded env from /app/.env
info  - Using webpack 5. Opts in to future default behavior
   Creating an optimized production build ...
Failed to compile.

./src/app/page.tsx
Type error: Type 'string' is not assignable to type 'number'.

  10 | const x: number = "hello"
     |                   ^^^^^^^

error: build failed
Filtered output
   Creating an optimized production build ...
Failed to compile.

./src/app/page.tsx
Type error: Type 'string' is not assignable to type 'number'.

  10 | const x: number = "hello"
     |                   ^^^^^^^

error: build failed
next build strips info lines ~118 tokens → ~94 tokens (20% saved)
Raw output
info  - Loaded env from /app/.env
info  - Using webpack 5. Opts in to future default behavior
   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Linting and checking validity of types
 ✓ Collecting page data
 ✓ Generating static pages (3/3)

Route (app)                              Size     First Load JS
┌ ○ /                                    5.23 kB        87.2 kB
└ ○ /about                               2.11 kB        84.1 kB
Filtered output
   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Linting and checking validity of types
 ✓ Collecting page data
 ✓ Generating static pages (3/3)

Route (app)                              Size     First Load JS
┌ ○ /                                    5.23 kB        87.2 kB
└ ○ /about                               2.11 kB        84.1 kB
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters