From b000f8b053a943ee6aaf3c8b7d40e61871e78d77 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 14 Jan 2024 09:34:58 +0000 Subject: [PATCH 1/2] docs(readme): replace `fastify.io` links with `fastify.dev` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4312acae..c977ba90 100644 --- a/README.md +++ b/README.md @@ -475,7 +475,7 @@ This code will send the `index.html` for the paths `docs`, `docs/`, and `docs/in If an error occurs while trying to send a file, the error will be passed to Fastify's error handler. You can set a custom error handler with -[`fastify.setErrorHandler()`](https://www.fastify.io/docs/latest/Reference/Server/#seterrorhandler). +[`fastify.setErrorHandler()`](https://www.fastify.dev/docs/latest/Reference/Server/#seterrorhandler). ### Payload `stream.filename` From 4628fde1b535f1dfc7f1ae5fa6102daa096a15c4 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 14 Jan 2024 09:46:38 +0000 Subject: [PATCH 2/2] docs(readme): remove `www.` from `fastify.dev` urls --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c977ba90..2b2ee400 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ A URL path prefix used to create a virtual mount path for the static directory. Default: `{}` Constraints that will be added to registered routes. See Fastify's documentation for -[route constraints](https://www.fastify.dev/docs/latest/Reference/Routes/#constraints). +[route constraints](https://fastify.dev/docs/latest/Reference/Routes/#constraints). #### `prefixAvoidTrailingSlash` @@ -450,7 +450,7 @@ decorators. If a request matches the URL `prefix` but a file cannot be found for the request, Fastify's 404 handler will be called. You can set a custom 404 -handler with [`fastify.setNotFoundHandler()`](https://www.fastify.dev/docs/latest/Reference/Server/#setnotfoundhandler). +handler with [`fastify.setNotFoundHandler()`](https://fastify.dev/docs/latest/Reference/Server/#setnotfoundhandler). When registering `@fastify/static` within an encapsulated context, the `wildcard` option may need to be set to `false` in order to support index resolution and nested not-found-handler: @@ -475,7 +475,7 @@ This code will send the `index.html` for the paths `docs`, `docs/`, and `docs/in If an error occurs while trying to send a file, the error will be passed to Fastify's error handler. You can set a custom error handler with -[`fastify.setErrorHandler()`](https://www.fastify.dev/docs/latest/Reference/Server/#seterrorhandler). +[`fastify.setErrorHandler()`](https://fastify.dev/docs/latest/Reference/Server/#seterrorhandler). ### Payload `stream.filename`