Skip to content

Commit

Permalink
revert: commit 0bb5922 (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored May 29, 2024
1 parent 0bb5922 commit 7a7a74c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ui/docs-bundle/src/utils/xFernHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ export function getXFernHostEdge(req: NextRequest, useSearchParams = false): str
useSearchParams ? req.nextUrl.searchParams.get("host") : undefined,
process.env.NEXT_PUBLIC_DOCS_DOMAIN,
req.cookies.get("_fern_docs_preview")?.value,
// req.headers.get("x-forwarded-host"),
req.headers.get("x-fern-host"),
req.nextUrl.host,
];

// eslint-disable-next-line no-console
console.log("hosts", hosts);
// eslint-disable-next-line no-console
console.log("headers", Array.from(req.headers.entries()));

for (let host of hosts) {
host = cleanHost(host);
if (host != null) {
Expand Down

0 comments on commit 7a7a74c

Please sign in to comment.