Skip to content

Commit

Permalink
docs(vite): remove redundant server scripts heading (#7832)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Oct 31, 2023
1 parent 43027e3 commit ae70134
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/future/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ export default function App() {
}
```

#### Update your server scripts

In development, Vite will lazily compile your app code on-demand, both for the server and the browser assets.
In production, Vite will handle bundling your app into client assets and a server bundle.

##### Migrating from Remix App Server
#### Migrating from Remix App Server

If you were using `remix-serve` in development (or `remix dev` without the `-c` flag), you'll need to switch to the new minimal dev server.
It comes built-in with the Remix Vite plugin and will take over when you run `vite dev`.
Expand All @@ -186,7 +181,7 @@ It comes built-in with the Remix Vite plugin and will take over when you run `vi
}
```

##### Migrating from a custom server
#### Migrating from a custom server

If you were using a custom server in development, you'll need to edit your custom server to use Vite's `connect` middleware.
This will delegate asset requests and initial render requests to Vite during development, letting you benefit from Vite's excellent DX even with a custom server.
Expand Down

0 comments on commit ae70134

Please sign in to comment.