Skip to content

Commit c2086de

Browse files
committed
Fix bad link in the docs
1 parent a089339 commit c2086de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/api/other-api/serve.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: "@react-router/serve"
66

77
React Router is designed for you to own your server, but if you don't want to set one up, you can use the React Router App Server instead. It's a production-ready but basic Node.js server built with [Express][express].
88

9-
By design, we do not provide options to customize the React Router App Server because if you need to customize the underlying `express` server, we'd rather you manage the server completely instead of creating an abstraction to handle all the possible customizations you may require. If you find you want to customize it, you can [migrate to the `@react-router/express` adapter][eject].
9+
By design, we do not provide options to customize the React Router App Server because if you need to customize the underlying `express` server, we'd rather you manage the server completely instead of creating an abstraction to handle all the possible customizations you may require. If you find you want to customize it, you can [migrate to the `@react-router/express` adapter][migrate-to-express].
1010

1111
You can see the underlying `express` server configuration in [packages/react-router-serve/cli.ts][rr-serve-code]. By default, it uses the following Express middlewares (please refer to their documentation for default behaviors):
1212

@@ -85,12 +85,11 @@ In development, `react-router-serve` will ensure the latest code is run by purgi
8585
In production this doesn't happen. The server boots up, and that's the end of it.
8686

8787
[rr-express]: ./adapter#createrequesthandler
88-
[singleton]: ../guides/manual-mode#keeping-in-memory-server-state-across-rebuilds
8988
[express-listen]: https://expressjs.com/en/api.html#app.listen
9089
[rr-serve-code]: https://github.com/remix-run/react-router/blob/main/packages/react-router-serve/cli.ts
9190
[compression]: https://expressjs.com/en/resources/middleware/compression.html
9291
[express-static]: https://expressjs.com/en/4x/api.html#express.static
9392
[serve-static]: https://expressjs.com/en/resources/middleware/serve-static.html
9493
[morgan]: https://expressjs.com/en/resources/middleware/morgan.html
9594
[express]: https://expressjs.com/
96-
[eject]: (./adapter#migrating-from-the-react-router-app-server)
95+
[migrate-to-express]: ./adapter#migrating-from-the-react-router-app-server

0 commit comments

Comments
 (0)