Skip to content

Commit

Permalink
Change dev and build commands to use npm scripts to allow remix cli (#…
Browse files Browse the repository at this point in the history
…8975)

Co-authored-by: Matt Brophy <matt@brophy.org>
  • Loading branch information
mattmazzola and brophdawg11 committed Mar 5, 2024
1 parent 7424850 commit b6377ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/future/spa-mode.md
Expand Up @@ -58,15 +58,15 @@ export default defineConfig({
In SPA Mode, you develop the same way you would for a traditional Remix SSR app, and you actually use a running Remix dev server in order to enable HMR/HDR:

```sh
remix vite:dev
npx remix vite:dev
```

### Production

When you build your app in SPA Mode, Remix will call the server handler for the `/` route and save the rendered HTML in an `index.html` file alongside your client side assets (by default `build/client/index.html`).

```sh
remix vite:build
npx remix vite:build
```

#### Preview
Expand Down

0 comments on commit b6377ce

Please sign in to comment.