Skip to content

Commit 2229d76

Browse files
authored
chore: replace fastify.io links with fastify.dev (#331)
* docs(readme): replace `fastify.io` links with `fastify.dev` * docs(readme): remove `www.` from `fastify.dev` urls
1 parent 49ec00c commit 2229d76

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
66

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

1111
`@fastify/http-proxy` is built on top of
@@ -172,7 +172,7 @@ fastify.register(proxy, {
172172
### `config`
173173

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

examples/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function startOrigin () {
1111
})
1212

1313
origin.get('/redirect', async (request, reply) => {
14-
return reply.redirect(302, 'https://fastify.io')
14+
return reply.redirect(302, 'https://fastify.dev')
1515
})
1616

1717
origin.get('/a', async (request, reply) => {

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function run () {
1919
})
2020

2121
origin.get('/redirect', async (request, reply) => {
22-
return reply.redirect(302, 'https://fastify.io')
22+
return reply.redirect(302, 'https://fastify.dev')
2323
})
2424

2525
origin.post('/this-has-data', async (request, reply) => {
@@ -121,7 +121,7 @@ async function run () {
121121
followRedirect: false
122122
}
123123
)
124-
t.equal(location, 'https://fastify.io')
124+
t.equal(location, 'https://fastify.dev')
125125
t.equal(statusCode, 302)
126126
})
127127

@@ -147,7 +147,7 @@ async function run () {
147147
followRedirect: false
148148
}
149149
)
150-
t.equal(location, 'https://fastify.io')
150+
t.equal(location, 'https://fastify.dev')
151151
t.equal(statusCode, 302)
152152
})
153153

0 commit comments

Comments
 (0)