feat(docs): use parameterized OpenAPI server URL

Replace the static `https://sofa.example.com/api/v1` server entry with a variable-based URL (`{protocol}://{host}:{port}/api/v1`) so the spec works against any instance out of the box. Also move the output path from `docs/openapi.json` to `docs/public/openapi.json` so the file is served as a static asset by the docs site.
This commit is contained in:
2026-03-15 14:40:33 -04:00
parent d885fc524b
commit 4ce285f721
58 changed files with 95 additions and 60 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { createOpenAPI } from "fumadocs-openapi/server";
export const openapi = createOpenAPI({
input: ["./openapi.json"],
input: ["./public/openapi.json"],
});