From 53c4c79959082ab550d8ca7eebc51da208b19aeb Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 21:48:19 +0000 Subject: [PATCH] fix(cli-docs): Serve the browser install page as HTML The route that marks /install as text/plain also matched browser requests after they were rewritten to the highlighted source page, so Git-built preview deployments served that page as plain text. Skip it for requests that accept HTML. Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com> --- apps/cli-docs/vercel/build-output.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/cli-docs/vercel/build-output.mjs b/apps/cli-docs/vercel/build-output.mjs index 88870423b..2d3902a5e 100644 --- a/apps/cli-docs/vercel/build-output.mjs +++ b/apps/cli-docs/vercel/build-output.mjs @@ -18,8 +18,10 @@ const routes = [ dest: "/install-source/install$1/index.html", check: true, }, + // Only the raw script is plain text; the browser page above stays HTML. { src: "^/install$", + missing: [{ type: "header", key: "accept", value: { re: ".*text/html.*" } }], headers: { "Content-Type": "text/plain; charset=utf-8" }, continue: true, },