Skip to content

Commit f0e0279

Browse files
docs(solid-start): sync nitro v3 hosting guide to react (#5824)
* docs(solid-start): sync nitro v3 hosting guide to react * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 33c3d40 commit f0e0279

File tree

1 file changed

+8
-45
lines changed

1 file changed

+8
-45
lines changed

docs/start/framework/solid/guide/hosting.md

Lines changed: 8 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -187,54 +187,19 @@ tool](https://docs.netlify.com/start/quickstarts/deploy-from-ai-code-generation-
187187

188188
### Nitro
189189

190-
[Nitro](https://nitro.build/) is an abstraction layer that allows you to deploy TanStack Start applications to [a wide range of providers](https://nitro.build/deploy).
190+
[Nitro](https://v3.nitro.build/) is an agnostic layer that allows you to deploy TanStack Start applications to [a wide range of hostings](https://v3.nitro.build/deploy).
191191

192-
**⚠️ During TanStack Start 1.0 release candidate phase, we currently recommend using:**
193-
194-
- [@tanstack/nitro-v2-vite-plugin (Temporary Compatibility Plugin)](https://www.npmjs.com/package/@tanstack/nitro-v2-vite-plugin) - A temporary compatibility plugin for using Nitro v2 as the underlying build tool for TanStack Start.
195-
- [Nitro v3's Vite Plugin (ALPHA)](https://www.npmjs.com/package/nitro) - An **ALPHA** plugin for officially using Nitro v3 as the underlying build tool for TanStack Start.
196-
197-
#### Using Nitro v2
198-
199-
**⚠️ `@tanstack/nitro-v2-vite-plugin` is a temporary compatibility plugin for using Nitro v2 as the underlying build tool for TanStack Start. Use this plugin if you experience issues with the Nitro v3 plugin. It does not support all of Nitro v3's features and is limited in its dev server capabilities, but should work as a safe fallback, even for production deployments for those who were using TanStack Start's alpha/beta versions.**
200-
201-
```tsx
202-
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
203-
import { defineConfig } from 'vite'
204-
import viteSolid from 'vite-plugin-solid'
205-
import { nitroV2Plugin } from '@tanstack/nitro-v2-vite-plugin'
206-
207-
export default defineConfig({
208-
plugins: [
209-
tanstackStart(),
210-
nitroV2Plugin(/*
211-
// nitro config goes here, e.g.
212-
{ preset: 'node-server' }
213-
*/),
214-
viteSolid({ ssr: true }),
215-
],
216-
})
217-
```
218-
219-
#### Using Nitro v3 (ALPHA)
220-
221-
**⚠️ The [`nitro`](https://www.npmjs.com/package/nitro) vite plugin is an official **ALPHA** plugin from the Nitro team for using Nitro v3 as the underlying build tool for TanStack Start. It is still in development and is receiving regular updates.**
192+
**⚠️ The [`nitro/vite`](https://v3.nitro.build/) plugin natively integrates with Vite Environments API as the underlying build tool for TanStack Start. It is still under active development and receives regular updates. Please report any issues you encounter with reproduction so they can be investigated.**
222193

223194
```tsx
224195
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
225196
import { defineConfig } from 'vite'
226-
import viteSolid from 'vite-plugin-solid'
227197
import { nitro } from 'nitro/vite'
198+
import viteSolid from 'vite-plugin-solid'
228199

229200
export default defineConfig({
230-
plugins: [
231-
tanstackStart(),
232-
nitro(/*
233-
// nitro config goes here, e.g.
234-
{ config: { preset: 'node-server' } }
235-
*/)
236-
viteSolid({ssr: true}),
237-
],
201+
plugins: [tanstackStart(), nitro(), viteSolid({ ssr: true })],
202+
nitro: {},
238203
})
239204
```
240205

@@ -276,15 +241,13 @@ Depending on how you invoke the build, you might need to set the `'bun'` preset
276241
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
277242
import { defineConfig } from 'vite'
278243
import viteSolid from 'vite-plugin-solid'
279-
import { nitroV2Plugin } from '@tanstack/nitro-v2-vite-plugin'
280-
// alternatively: import { nitro } from 'nitro/vite'
244+
import { nitro } from 'nitro/vite'
281245

282246
export default defineConfig({
283247
plugins: [
284248
tanstackStart(),
285-
nitroV2Plugin({ preset: 'bun' })
286-
// alternatively: nitro( { config: { preset: 'bun' }} ),
287-
viteSolid({ssr: true}),
249+
nitro({ preset: 'bun' })
250+
viteSolid({ssr: true}),
288251
],
289252
})
290253
```

0 commit comments

Comments
 (0)