Skip to content

Commit

Permalink
fix v3 revalidate condition (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Apr 29, 2024
1 parent fb6fda5 commit 280c7f6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ const handler: NextApiHandler = async (

// when we call res.revalidate() nextjs uses
// req.headers.host to make the network request
if (!docs.baseUrl.domain.includes("rewrite-test.danny-312.workers.dev")) {
if (
docs.baseUrl.domain.includes(".docs.buildwithfern.com") ||
docs.baseUrl.domain.includes(".docs.dev.buildwithfern.com")
) {
req.headers.host = xFernHost;
}

Expand Down

0 comments on commit 280c7f6

Please sign in to comment.