From 15b264b8d0d1d6cea83a42eb2746309985972e5b Mon Sep 17 00:00:00 2001 From: patak Date: Sun, 3 Jul 2022 07:14:16 +0200 Subject: [PATCH] chore: better ordering --- docs/config/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/index.md b/docs/config/index.md index b30628f07d523f..cab69067574a3b 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -78,10 +78,10 @@ export default defineConfig(({ command, mode, ssrBuild }) => { }) ``` -Only `ssrBuild` is included, as during dev, the config creates a single server shared between the SSR and non-SSR requests. - It is important to note that in Vite's API the `command` value is `serve` during dev (in the cli `vite`, `vite dev`, and `vite serve` are aliases), and `build` when building for production (`vite build`). +Only `ssrBuild` is included instead of a more general `ssr` flag because, during dev, the config is shared by the single server handling SSR and non-SSR requests. + ## Async Config If the config needs to call async function, it can export a async function instead: