Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/routes/solid-start/v1/reference/config/define-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading