rsnext/test/production
Jiwon Choi 1511433212
fix(next): next build --debug log output layout is broken (#63193)
### Why?

The output layout breaks when running `next build --debug`

#### Current

```sh
 ✓ Generating static pages (10/10) 
   Finalizing page optimization  .   Collecting build traces  .Redirects

┌ source: /:path+/
├ destination: /:path+
└ permanent: true
 

 ✓ Collecting build traces    
 ✓ Finalizing page optimization    
```

#### Expected

```sh
✓ Generating static pages (4/4) 
   Finalizing page optimization ...
   Collecting build traces ...


Redirects
┌ source: /:path+/
├ destination: /:path+
└ permanent: true
```

### How?

Moved the `debug` output right above the `routes` output.
Also, ensured that the output layout has a consistent number of line
breaks (example below marked as `>`):

> Two line breaks for the next `option`, a single line break within the
same content.

```sh
   Collecting build traces ...
>
>
Redirects
┌ source: /:path+/
├ destination: /:path+
└ permanent: true
>
┌ source: /redirects
├ destination: /
└ permanent: true
>
>
Headers
┌ source: /
└ headers:
  └ x-custom-headers: headers
>
>
Rewrites
┌ source: /rewrites
└ destination: /
>
>
Route (app)                              Size     First Load JS
┌ ○ /                                    141 B          86.2 kB
└ ○ /_not-found                          876 B          86.9 kB
```

Fixes #63192

---------
2024-04-02 15:05:28 -07:00
..
app-dir fix(next): next build --debug log output layout is broken (#63193) 2024-04-02 15:05:28 -07:00
app-dir-edge-runtime-with-wasm chore: remove experimental appDir: true from tests (#52291) 2023-07-05 19:17:29 -07:00
app-dir-hide-suppressed-error-during-next-export Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-dir-prefetch-non-iso-url Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-dir-prevent-304-caching Prevent caching page with 304 status (#57737) 2023-10-31 17:48:03 -07:00
bfcache-routing Improve handling of failed nextBuild() calls in test suite (#63717) 2024-03-27 19:29:16 +01:00
build-spinners Use consistent name for App Router tests (#56352) 2023-10-06 11:06:06 +02:00
ci-missing-typescript-deps Add types as a default dependency into tests (#44140) 2022-12-19 19:05:53 +01:00
custom-error-500 Fix handling with custom _error and pages/500 (#40110) 2022-08-30 18:14:12 -05:00
custom-server server: bundle vendored react (#55362) 2023-09-15 19:49:39 +00:00
dependencies-can-use-env-vars-in-middlewares Remove static analysis of process.env (#50260) 2023-05-24 08:19:02 -07:00
deployment-id-handling feat: add deploymentId config (#63198) 2024-03-13 16:46:50 -04:00
disable-fallback-polyfills Update flakey polyfills and acceptance tests (#45313) 2023-01-26 10:25:47 -08:00
edge-config-validations Rename allowDynamic to unstable_allowDynamic (#40496) 2022-09-12 15:32:18 -07:00
edge-dynamic-code-eval fix(log): improve error when dynamic code eval is disallowed (#62999) 2024-03-12 23:31:32 +01:00
edge-runtime-is-addressable Upgrade edge-runtime + make EdgeRuntime value overridable with an env var on compilation (#38331) 2022-07-12 15:18:59 +00:00
emit-decorator-metadata Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
enoent-during-require Ensure ENOENT error is not ignored when loading pages (#37486) 2022-06-06 14:35:26 -04:00
error-hydration Skip client-side data-fetching after ssr error (#51377) 2024-02-07 17:24:26 -08:00
escheck-output chore(test): switch a few tests from yarn to pnpm (#61793) 2024-02-09 15:11:52 +01:00
eslint-plugin-deps Remove setPnpmResolutionMode as default is highest (#57828) 2023-11-04 21:19:51 +01:00
export chore: update ESLint and plugins to latest (#61544) 2024-02-01 20:06:02 -05:00
exported-runtimes-value-validation Revert "refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc" (#62838) 2024-03-04 21:43:56 +00:00
fallback-export-error chore(export)!: remove next export in favor of output: export in next.config.js (#57085) 2023-10-23 18:03:58 +00:00
fatal-render-errror Ensure default _app is used when falling back to default _error (#39467) 2022-08-10 11:36:22 -05:00
generate-middleware-source-maps feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
graceful-shutdown Remove Turbopack test skip for scss test (#63649) 2024-03-24 20:04:12 +01:00
handle-already-sent-response Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
ipc-forbidden-headers add "expect" to list of forbidden IPC headers (#53947) 2023-08-12 19:38:38 +00:00
jest chore(test): switch a few tests from yarn to pnpm (#61793) 2024-02-09 15:11:52 +01:00
middleware-typescript fix(ts): match MiddlewareConfig with documentation (#61718) 2024-02-07 23:32:03 +00:00
next-font Add next/font import (#45891) 2023-02-16 15:33:39 +01:00
pages-dir/production Use local AMP validator to reduce test flakiness (#63838) 2024-03-28 20:25:35 +00:00
pnpm-support Remove installCommand on typescript-auto-install and pnpm-support (#58039) 2023-11-05 18:32:10 +01:00
postcss-plugin-config-as-string allow to provide postcss plugin options as a string (#35173) 2022-04-08 16:58:50 +00:00
prerender-prefetch de-flake prerender-prefetch test (#63739) 2024-03-26 14:47:22 -07:00
reading-request-body-in-middleware fix(stream): Allows body larger than 16 KiB with middleware (#41270) 2022-10-17 15:26:16 -07:00
sharp-basic Fix recursive ignoring case in build traces (#60740) 2024-01-16 14:11:17 -08:00
standalone-mode [PPR] Support rewrites in middleware (#63071) 2024-03-11 09:05:26 -06:00
supports-module-resolution-nodenext Fix failing TS test from new release (#54523) 2023-08-24 11:36:38 -07:00
terser-class-static-blocks chore: Update terser to v5.27.0 (#61068) 2024-01-24 08:42:08 +01:00
transpile-packages Remove lodash from external packages list (#63601) 2024-03-22 10:56:38 +00:00
typescript-basic Fix next/dynamic types for resolving named export module (#43923) 2022-12-10 17:35:13 +00:00