Skip to content

Commit ad3232d

Browse files
authored
docs: update docs to mention --conditions (#15161)
1 parent 1ad8fca commit ad3232d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/api/other-api/adapter.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,16 @@ Update the `dev` and `start` scripts to use your new Express server:
112112
{
113113
// ...
114114
"scripts": {
115-
"dev": "cross-env NODE_ENV=development node server.js",
115+
"dev": "cross-env NODE_ENV=development node --conditions development server.js",
116116
"start": "node server.js"
117117
// ...
118118
}
119119
// ...
120120
}
121121
```
122122

123+
Make sure that `--conditions development` is included in the `dev` script so that the proper version of React Router is used in development.
124+
123125
## `@react-router/cloudflare`
124126

125127
[Reference Documentation ↗](https://api.reactrouter.com/v7/modules/_react-router_cloudflare.html)

0 commit comments

Comments
 (0)