Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/start/framework/react/hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default defineConfig({
tanstackStart(),
nitroV2Plugin(/*
// nitro config goes here, e.g.
{ target: 'node-server' }
{ preset: 'node-server' }
*/),
viteReact(),
],
Expand Down Expand Up @@ -168,7 +168,7 @@ export default defineConfig({
tanstackStart(),
nitro(/*
// nitro config goes here, e.g.
{ config: { target: 'node-server' } }
{ config: { preset: 'node-server' } }
*/)
viteReact(),
Comment on lines 169 to 173
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Nitro v3 (vite plugin) example updated to preset

Good update. The inline plugin config { config: { preset: 'node-server' } } reads clearly and aligns with the v2 snippet.

If you want external confirmation, check Nitro’s current preset key in v3 docs:


🌐 Web query:

In Nitro v3, is the configuration key `preset` (not `target`) the correct way to select environments like 'node-server' and 'bun' when using the Vite plugin inline config?

💡 Result:

Yes — use the Nitro config key preset (not target). Set it in your nitro config (or via NITRO_PRESET/--preset) to values like "node_server" or "bun". [1][2][3]

Sources:

  • Nitro config docs (preset option). [1]
  • Nitro Bun runtime (preset: "bun"). [2]
  • Nitro deploy/overview (NITRO_PRESET / --preset usage). [3]

Use snake_case preset values in docs
docs/start/framework/react/hosting.md (169–173): change { config: { preset: 'node-server' } } to { config: { preset: 'node_server' } } to align with Nitro v3 config docs (default preset is node_server) (nitropack.org)

🤖 Prompt for AI Agents
In docs/start/framework/react/hosting.md around lines 169 to 173, update the
example Nitro config to use the snake_case preset name expected by Nitro v3;
change the shown preset value from node-server to node_server in the example
object so it matches Nitro v3 docs and the default preset.

],
Expand Down