Skip to content

Fix region instructions on the homepage - #22

Open
straube wants to merge 2 commits into
fly-apps:mainfrom
straube:fix/next-steps
Open

straube wants to merge 2 commits into
fly-apps:mainfrom
straube:fix/next-steps

Conversation

@straube

@straube straube commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Problem

The "Run in another region" step in "Try next" had two issues:

  • fly regions add nrt no longer works. The CLI now fails with This command is no longer supported; use fly scale count ....
  • Adding a region and refreshing the page doesn't show the new region, because Fly routes each request to the nearest machine.

Changes

  • views/index.ejs: replace fly regions add nrt and fly scale count 2 with fly scale count 2 --region nrt.
  • views/index.ejs: drop the "then refresh to see a different region" text. In its place is a copyable curl -H "fly-prefer-region: nrt" https://<app>.fly.dev command, with the app name filled in from the page, to target the new region explicitly.
  • AGENTS.md: make the same change to the "Things to try" entry.

Testing

  • Ran the server locally and confirmed the page renders with the new commands and copy buttons.

fly regions add is no longer supported; use fly scale count --region.
Requests are served from the nearest region, so show how to target one
with the fly-prefer-region header.
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