Skip to content

[pull] canary from vercel:canary#912

Merged
pull[bot] merged 7 commits intocode:canaryfrom
vercel:canary
Mar 25, 2026
Merged

[pull] canary from vercel:canary#912
pull[bot] merged 7 commits intocode:canaryfrom
vercel:canary

Conversation

@pull
Copy link

@pull pull bot commented Mar 25, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

timneutkens and others added 7 commits March 25, 2026 19:15
## What?

Converting from Set->Array is not needed as it's only used to iterate
over the list. Avoids the overhead of converting this.
## What?

The chunkloading instrumentation causes a GC root because of writing to
`globalThis.__next_require__` / `globalThis.__next_chunk_load__`.
Splitting it into a separate function reduces the scope being retained
in memory.

Switch onHeaders to use for loop which is faster.
## What?

Converting from `req.headers` to `Headers` is expensive. Here it's only
used to check/read headers only, so directly using the object when it's
available is better.
## What?

Using `charCodeAt` is faster than startWith for this case.
## What?

Currently the lockfile patching is always triggered eagerly but it's
only awaited when it fails to load. The patching still affects builds
that don't need it. This changes that.

---------

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
#91840)

When AI agents run `create-next-app` with explicit flags like
`--typescript --tailwind --eslint --app --src-dir`, the CLI still enters
interactive mode and prompts for any unspecified options:

```
➜ npx create-next-app my-app --typescript --tailwind --eslint --app --src-dir --use-pnpm
✔ Would you like to use React Compiler? … No / Yes
✔ Would you like to customize the import alias (`@/*` by default)? … No / Yes
? Would you like to include AGENTS.md to guide coding agents to write up-to-date Next.js code? › No / Yes
```

Agents can sometimes answer these interactive prompts correctly, but
often they can't. When they fail to navigate the prompts, they fall back
to scaffolding the project themselves from scratch — generating files
based on stale training data. This means they might initialize an app
using deprecated patterns or pin to an older version of Next.js (e.g.
15) instead of the latest. Using `create-next-app` non-interactively is
the best way to ensure agents always produce up-to-date scaffolding.

Previously, `hasProvidedOptions` only skipped the initial "use
recommended defaults?" meta-prompt but still showed individual prompts
for each missing option. Now when any config flags are provided, all
remaining options use the recommended defaults without prompting.

The resolved defaults are printed to stdout so the caller knows exactly
what was assumed and which flags to pass to override:

```
Using defaults for unprovided options:

  --eslint                ESLint (use --biome for Biome, --no-eslint for None)
  --no-react-compiler     No React Compiler (use --react-compiler for React Compiler)
  --agents-md             AGENTS.md (use --no-agents-md for No AGENTS.md)
  --import-alias          "@/*"

To customize, re-run with explicit flags.
```

The `displayConfig` array is extended with a `flags` field so this
output is auto-generated from the same source of truth used for the
interactive prompts. Existing behavior for `--yes`, CI mode, and fully
interactive mode (no flags) is unchanged.
… webpack (#91909)

## Description

Documents the CSS decimal precision difference between Turbopack and
webpack in the Turbopack docs page under "Known gaps with webpack".

Turbopack uses Lightning CSS which outputs 5 digits of decimal precision
for numeric CSS values, while webpack uses 10 digits. This applies to
both plain CSS and Sass/SCSS output.

Closes #91862
@pull pull bot locked and limited conversation to collaborators Mar 25, 2026
@pull pull bot added the ⤵️ pull label Mar 25, 2026
@pull pull bot merged commit 2ea43d6 into code:canary Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants