Skip to content

Commit 618b0ba

Browse files
committed
proxy external request
1 parent 880ac8f commit 618b0ba

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
This override is used by OpenNext to proxy rewritten requests to external services. It is used either in the `external` middleware (if set) or in the default/splitted server if the middleware is bundled.
22

3-
If you want to better understand how to implement your own ProxyExternalRequest, the easiest way would be to take a look at the existing [included ProxyExternalRequest](https://github.com/opennextjs/opennextjs-aws/tree/main/packages/open-next/src/overrides/proxyExternalRequest).
3+
If you want to better understand how to implement your own ProxyExternalRequest, the easiest way would be to take a look at the existing [included ProxyExternalRequest](https://github.com/opennextjs/opennextjs-aws/tree/main/packages/open-next/src/overrides/proxyExternalRequest).
4+
5+
## Included Proxy External Request
6+
7+
### node
8+
9+
This uses node-proxy to proxy the request to the external service.
10+
11+
### fetch
12+
13+
This uses fetch to proxy the request to the external service.
14+
15+
### dummy
16+
17+
This is a dummy implementation that throws a FatalError.

0 commit comments

Comments
 (0)