Skip to content

Commit

Permalink
chore(dev): add changeset for new dev server options
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed May 25, 2023
1 parent b63197a commit e0818dc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .changeset/wicked-pandas-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@remix-run/dev": minor
"@remix-run/react": minor
"@remix-run/server-runtime": minor
---

Reuse dev server port for WebSocket (Live Reload,HMR,HDR)

As a result the `webSocketPort`/`--websocket-port` option has been obsoleted.
Additionally, scheme/host/port options for the dev server have been renamed.

Available options are:

| Option | flag | config | default |
| -------------- | ------------------ | ---------------- | --------------------------------- |
| Command | `-c` / `--command` | `command` | `remix-serve <server build path>` |
| Scheme | `--scheme` | `scheme` | `http` |
| Host | `--host` | `host` | `localhost` |
| Port | `--port` | `port` | Dynamically chosen open port |
| No restart | `--no-restart` | `restart: false` | `restart: true` |

Note that scheme/host/port options are for the _dev server_, not your app server.
You probably don't need to use scheme/host/port option if you aren't configuring networking (e.g. for Docker or SSL).

0 comments on commit e0818dc

Please sign in to comment.