Skip to content

Commit fcc532c

Browse files
authored
fix: Add servers to OpenAPI response (#717)
1 parent 3982b7e commit fcc532c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/server/middleware/open-api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ export const withOpenApi = async (server: FastifyInstance) => {
1616
url: "http://www.apache.org/licenses/LICENSE-2.0.html",
1717
},
1818
},
19+
servers: [
20+
{
21+
// This will appear in API documentation.
22+
url: "https://YOUR_ENGINE_URL",
23+
description: "Provide your Engine URL",
24+
},
25+
],
1926
components: {
2027
securitySchemes: {
2128
bearerAuth: {

0 commit comments

Comments
 (0)