Skip to content

Send visitor country in API requests for specific environments - #4667

Merged
conico974 merged 5 commits into
mainfrom
conico/adaptive-region
Oct 7, 2026
Merged

conico974 merged 5 commits into
mainfrom
conico/adaptive-region

Conversation

@conico974

Copy link
Copy Markdown
Contributor

Proposed changes

Enhance visitor country handling by sending the visitor country in API requests for development, preview, and staging environments. Prioritize the forwarded x-gitbook-country header during revalidation requests to ensure accurate country data.

Changelog

  • [Feature] Send visitor country in API requests for dev, preview, and staging environments.
  • [Feature] Prioritize forwarded header for visitor country on revalidation requests.

@changeset-bot

changeset-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f9c914d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci

argos-ci Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) 👍 Approved by conico974 12 changed, 3 ignored Oct 7, 2026, 3:47 PM
customers-v2-vercel (Inspect) 👍 Approved by conico974 10 changed, 1 ignored Oct 7, 2026, 3:44 PM
v2-cloudflare (Inspect) 👍 Approved by conico974 8 changed, 2 ignored Oct 7, 2026, 3:50 PM
v2-vercel (Inspect) 👍 Approved by conico974 2 changed, 3 ignored Oct 7, 2026, 3:46 PM

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Style invalidation on a large API reference

Elements restyled by opening one popup on the Snyk API reference. A share near or above 100% means the insertion restyles the whole document.

interaction restyled page share budget
openapi-select 6 10,814 0.1% 25% ✅
search 639 10,814 5.9% 125% ✅

@conico974

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T15:41:28.841556Z f9c914d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9c914dd39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/gitbook/src/lib/visitors.ts
Comment thread packages/gitbook/src/lib/visitors.ts
@conico974
conico974 merged commit 848a39d into main Oct 7, 2026
21 checks passed
@conico974
conico974 deleted the conico/adaptive-region branch October 7, 2026 16:09

This branch was successfully deployed

2 active deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants