From 17c4de30ddfca68132a265ec18e2e1d36e90f543 Mon Sep 17 00:00:00 2001 From: Jeremy Nguyen Date: Wed, 22 Jul 2026 21:13:49 -0700 Subject: [PATCH] feat: output openapi.json in static build - Output openapi.json in static build with @redocly/cli bundle - Update docs download button to link to /openapi.json instead of blob URL --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 926ec10..6e12e5c 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "generate": "cd api && npx openapi-merge-cli -c merge-config.yaml", "validate": "npx @redocly/cli lint openapi.yaml", - "build": "npm run generate && npm run validate && npx @redocly/cli build-docs openapi.yaml -o html/index.html", + "build": "npm run generate && npm run validate && npx @redocly/cli build-docs openapi.yaml -o html/index.html --theme.openapi '{\"downloadDefinitionUrl\":\"openapi.json\"}' && npx @redocly/cli bundle openapi.yaml --output html/openapi.json", "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", "lint": "npm run lint:yaml && npm run lint:js", "lintfix": "npm run eslint -- --fix",