From 8c866373759b65b31dd780cf55085d17d65071a7 Mon Sep 17 00:00:00 2001 From: Forge Date: Wed, 5 Aug 2026 15:52:42 +0000 Subject: [PATCH] fix(docs.json): Redirect stale plant-store OpenAPI spec to docs home MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mintlify's static asset store still serves the starter-template "OpenAPI Plant Store" sample spec at /docs/api-reference/openapi.json even though flox/docs deleted the file from the repo the same day it was added, during the MkDocs-to-Mintlify migration. Deleting the file never removed it from Mintlify's store, so the stale spec — advertising http://sandbox.mintlify.com as a Flox server — keeps surfacing to anyone or anything (crawlers, coding agents) that requests the URL or reads the auto-generated llms.txt. Add a top-level redirects entry so the request is intercepted before it reaches the stale asset. The source and destination are written docs-root-relative (no /docs prefix), per empirical verification against Mintlify's own subpath-hosted docs site: none of the 122 entries in Mintlify's redirects.json carry a /docs prefix, and two verified live 308s confirm the hosting layer applies the base path to both match and destination. A /docs-prefixed source would match /docs/docs/api-reference/openapi.json and never fire. Refs: DEV-203 Forge-Agent: implementation-worker (2a9f8ed) Co-Authored-By: Claude Sonnet 5 --- docs.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs.json b/docs.json index 9cef91c..24e7224 100644 --- a/docs.json +++ b/docs.json @@ -271,5 +271,12 @@ "playground": { "proxy": false } - } + }, + "redirects": [ + { + "source": "/api-reference/openapi.json", + "destination": "/", + "permanent": true + } + ] }