Skip to content

Commit

Permalink
docs(readme): replace fastify.io links with fastify.dev (#195)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@outlook.com>
  • Loading branch information
Fdawgs committed Jan 13, 2024
1 parent 4efb173 commit cacff32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function subsystem (fastify, opts) {
### Hooks and middleware

__Every registered middleware will be run during the `onRequest` hook phase__, so the registration order is important.
Take a look at the [Lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/) documentation page to understand better how every request is executed.
Take a look at the [Lifecycle](https://www.fastify.dev/docs/latest/Reference/Lifecycle/) documentation page to understand better how every request is executed.

```js
const fastify = require('fastify')()
Expand Down Expand Up @@ -106,7 +106,7 @@ It is possible to change the Fastify hook that the middleware will be attached t

To change the hook, pass a `hook` option like so:

*Note you can access `req.body` from the `preParsing`, `onError`, `preSerialization` and `onSend` lifecycle steps. Take a look at the [Lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/) documentation page to see the order of the steps.*
*Note you can access `req.body` from the `preParsing`, `onError`, `preSerialization` and `onSend` lifecycle steps. Take a look at the [Lifecycle](https://www.fastify.dev/docs/latest/Reference/Lifecycle/) documentation page to see the order of the steps.*

```js
const fastify = require('fastify')()
Expand Down

0 comments on commit cacff32

Please sign in to comment.