Skip to content

Commit

Permalink
docs(pages/v2): add devServerPort deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 3, 2023
1 parent fd3b5de commit 3e64b90
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/pages/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,26 @@ module.exports = {
};
```

## `devServerPort`

In your `remix.config.js`, rename `devServerPort` to `dev.port`.

```js bad filename=remix.config.js lines=[3]
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerPort: 8002,
};
```

```js filename=remix.config.js good lines=[3-5]
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
dev: {
port: 8002,
},
};
```

## `serverBuildDirectory`

In your `remix.config.js`, rename `serverBuildDirectory` to `serverBuildPath` and specify a module path, not a directory.
Expand Down

0 comments on commit 3e64b90

Please sign in to comment.