Skip to content

Commit

Permalink
Clarify what "SPA fallback" is in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ngbrown committed Feb 5, 2024
1 parent e19fe3d commit 4e21925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/spa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ Preview build locally with [vite preview](https://vitejs.dev/guide/cli#vite-prev
npm run preview
```

You can serve this from any server of your choosing. The server should support SPA fallback. For a simple example, you could use [sirv-cli](https://www.npmjs.com/package/sirv-cli):
You can serve this from any server of your choosing. The server should be configured to serve multiple paths from a single root `/index.html` file (commonly called "SPA fallback"). Other steps may be required if the host doesn't directly support this functionality.

For a simple example, you could use [sirv-cli](https://www.npmjs.com/package/sirv-cli):

```shellscript
npx sirv-cli --single build/client/ --ignores "^/assets"
Expand Down

0 comments on commit 4e21925

Please sign in to comment.