Commit 61647bb6 authored by ChanHaeng Lee's avatar ChanHaeng Lee
Browse files

Remove `x-forwarded-fetch`

https://github.com/fedify-dev/fedify/pull/355#discussion_r2258738135
If you need it, you can use this instead of `fedifyWith`:
```ts
// middleware.ts
import { hasFederationAcceptHeader, integrateFederation } from "@fedify/next";
import { getXForwardedRequest } from "x-forwarded-fetch";

export default function middleware(request: Request) {
  if(hasFederationAcceptHeader(request) {
    integrateFederation(getXForwardedRequest(request))
  }
}
```
parent da08eb5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment