diff --git a/src/routes/solid-start/v1/reference/config/define-config.mdx b/src/routes/solid-start/v1/reference/config/define-config.mdx index ff80439e46..16191d94de 100644 --- a/src/routes/solid-start/v1/reference/config/define-config.mdx +++ b/src/routes/solid-start/v1/reference/config/define-config.mdx @@ -20,6 +20,14 @@ The `defineConfig` helper is from `@solidjs/start/config` and is used within [`a It takes a configuration object with settings for SolidStart, Vite, and Nitro. +To change the local development port, pass `--port` to Vinxi's dev command. For example, to run on port 3001: + +```sh +vinxi dev --port 3001 +``` + +If your `package.json` has a `dev` script, you can add `--port 3001` to that script instead. The port is set on the dev command, not through `defineConfig`. See the [Vinxi CLI docs](https://vinxi.vercel.app/api/cli.html) for other options. + ## Configuring Vite SolidStart supports most Vite options, including plugins via the `vite` option: