Skip to content

feat(website): Redirect spotlightjs.com to sentry local docs - #1387

Merged
MathurAditya724 merged 3 commits into
mainfrom
feat/website-redirect-to-sentry-local
Dec 5, 2026
Merged

MathurAditya724 merged 3 commits into
mainfrom
feat/website-redirect-to-sentry-local

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Spotlight has moved to sentry local in Sentry CLI v4, so this PR replaces the Starlight site with redirects to cli.sentry.dev. It needs to merge before the repo is archived.

Merge order: getsentry/toolkit#2912 first. Most redirects and the 404 page go to https://cli.sentry.dev/migrating-from-spotlight/, which returns 404 until that PR ships, and this site deploys main to production on merge. Merge this only once that URL returns 200.

  • astro.config.mjs has a redirects entry for each of the 29 pages the current site builds, plus the older URLs that the README, CONTRIBUTING.md, the changelog and SDK debug messages link to (such as /sidecar/npx/ from sentry-javascript). @astrojs/vercel turns them into real 301s in .vercel/output/config.json.
  • trailingSlash: "never": the adapter's redirect rules match /docs/foo but not /docs/foo/, which is how every old link is written. With "never", Vercel first sends /docs/foo/ to /docs/foo with a 308, and the redirect rule then matches.
  • Static redirects can't use wildcards (Astro needs getStaticPaths for those), so any other path gets 404.html. That page has a meta refresh and a link to the migration guide.
  • public/install.sh stays, so curl -sL https://spotlightjs.com/install.sh | sh keeps installing the latest Spotlight release. Once feat: Point Spotlight users at sentry local #1386 is released, that binary prints the move notice itself.
  • The Starlight docs, homepage, images, and the Sentry/Starlight/React/Tailwind dependencies are removed, along with the @sentry/astro catalog entry that only the website used. The build now outputs only 404.html, favicon.svg, and install.sh.

Example:

Redirect table

From the built .vercel/output/config.json routes. Every old path with a trailing slash first gets a 308 to the same path without it, then the 301 below.

Old path Final destination
/, /docs/, /docs/getting-started/, /docs/about/, /docs/architecture/, /about/ https://cli.sentry.dev/migrating-from-spotlight/
/docs/cli/, /docs/cli/run/, /docs/quickstart/turborepo/ https://cli.sentry.dev/commands/local/#sentry-local-run-command
/docs/cli/tail/ https://cli.sentry.dev/commands/local/#tail-output
/docs/cli/reference/ https://cli.sentry.dev/commands/local/#commands
/docs/quickstart/nextjs/, /docs/sdk/, /setup/nextjs/ https://cli.sentry.dev/migrating-from-spotlight/#sdk-setup
/docs/desktop-app/ https://cli.sentry.dev/migrating-from-spotlight/#viewer-instead-of-the-desktop-app
/docs/sidecar/, /docs/sidecar/npx/, /docs/sidecar/webpack/, /sidecar/, /sidecar/npx/ https://cli.sentry.dev/commands/local/#sentry-local-serve
/docs/sidecar/docker/ https://cli.sentry.dev/migrating-from-spotlight/#docker
/docs/mcp/, /docs/mcp/tools/, /docs/mcp/workflows/ https://cli.sentry.dev/migrating-from-spotlight/#agents-instead-of-spotlight-mcp
/docs/reference/console/, /docs/reference/integration/, /docs/reference/integrationpanel/, /docs/reference/configuration/ https://cli.sentry.dev/commands/local/
/docs/contribute/ and its four subpages, /contribute/ https://cli.sentry.dev/contributing/
/setup/, /setup/migration/ https://cli.sentry.dev/migrating-from-spotlight/
anything else, such as /docs/sidecar/whatever/ 404 page, meta refresh to https://cli.sentry.dev/migrating-from-spotlight/
/install.sh served as-is (200)

Query strings carry through both hops.

via @BYK, @MathurAditya724.

--

View Session [Sentry]

Spotlight has moved to sentry local in Sentry CLI v4. Replace the
Starlight site with Astro redirects from every page it built to the
matching cli.sentry.dev page. Any other path gets a 404 page that sends
people to the migration guide. install.sh stays so existing curl | sh
installs keep working.
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
spotlightjs Ready Ready Preview Dec 5, 2026 7:32am UTC

Request Review

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 55.54% (unchanged from base (bb76bf8) to head (80dc868)).

Coverage diff
@@            Coverage Diff             @@
##          main     #1387       +/-##
==========================================
  Coverage    55.54%    55.54%        —%
==========================================
  Files           81        81         —
  Tracked lines      2588      2588         —
  Branches      1891      1891         —
==========================================
  Hits          1441      1441         —
  Misses        1147      1147         —
  Partials       186       186         —

Generated by Coverage Action

astro's prerenderer imports parseCookie, which older cookie versions
don't export. Keep the direct cookie ^2.0.1 dependency the site had
before so the build resolves it.
…ages to the guide

/sidecar/npx is still in a sentry-javascript debug message. Docker, MCP,
desktop app and SDK pages now land on the matching migration guide
section, which explains what changed.
@MathurAditya724
MathurAditya724 merged commit a285f21 into main Dec 5, 2026
25 checks passed
@MathurAditya724
MathurAditya724 deleted the feat/website-redirect-to-sentry-local branch December 5, 2026 20:32

This branch was successfully deployed

1 active deployment
Preview — 80dc8685 Deployed Dec 5, 2026 by sentry-junior[bot] via Build #2480
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