Skip to content

Commit

Permalink
chore: replace fastify.io links with fastify.dev (#331)
Browse files Browse the repository at this point in the history
* docs(readme): replace `fastify.io` links with `fastify.dev`

* docs(readme): remove `www.` from `fastify.dev` urls
  • Loading branch information
Fdawgs authored Jan 15, 2024
1 parent 49ec00c commit 2229d76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)

Proxy your HTTP requests to another server, with hooks.
This [`fastify`](https://www.fastify.io) plugin forwards all requests
This [`fastify`](https://fastify.dev) plugin forwards all requests
received with a given prefix (or none) to an upstream. All Fastify hooks are still applied.

`@fastify/http-proxy` is built on top of
Expand Down Expand Up @@ -172,7 +172,7 @@ fastify.register(proxy, {
### `config`

An object accessible within the `preHandler` via `reply.context.config`.
See [Config](https://www.fastify.io/docs/v4.8.x/Reference/Routes/#config) in the Fastify
See [Config](https://fastify.dev/docs/v4.8.x/Reference/Routes/#config) in the Fastify
documentation for information on this option. Note: this is merged with other
configuration passed to the route.

Expand Down
2 changes: 1 addition & 1 deletion examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function startOrigin () {
})

origin.get('/redirect', async (request, reply) => {
return reply.redirect(302, 'https://fastify.io')
return reply.redirect(302, 'https://fastify.dev')
})

origin.get('/a', async (request, reply) => {
Expand Down
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function run () {
})

origin.get('/redirect', async (request, reply) => {
return reply.redirect(302, 'https://fastify.io')
return reply.redirect(302, 'https://fastify.dev')
})

origin.post('/this-has-data', async (request, reply) => {
Expand Down Expand Up @@ -121,7 +121,7 @@ async function run () {
followRedirect: false
}
)
t.equal(location, 'https://fastify.io')
t.equal(location, 'https://fastify.dev')
t.equal(statusCode, 302)
})

Expand All @@ -147,7 +147,7 @@ async function run () {
followRedirect: false
}
)
t.equal(location, 'https://fastify.io')
t.equal(location, 'https://fastify.dev')
t.equal(statusCode, 302)
})

Expand Down

0 comments on commit 2229d76

Please sign in to comment.