Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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