Skip to content

Automate browser based workflows with AI

fix servers in openapi doc (#1993)

Shuchang Zheng3166c0dd17f4
diff --git a/skyvern/forge/api_app.py b/skyvern/forge/api_app.py
index 82fb6cc38..77f5b9365 100644
--- a/skyvern/forge/api_app.py
+++ b/skyvern/forge/api_app.py
@@ -41,7 +41,11 @@ def custom_openapi() -> dict:
description="API for Skyvern",
routes=app.routes,
)
- openapi_schema["servers"] = [{"url": "https://api.skyvern.com", "x-fern-server-name": "Production"}]
+ openapi_schema["servers"] = [
+ {"url": "https://api.skyvern.com", "x-fern-server-name": "Production"},
+ {"url": "https://api-staging.skyvern.com", "x-fern-server-name": "Staging"},
+ {"url": "http://localhost:8000", "x-fern-server-name": "Development"},
+ ]
app.openapi_schema = openapi_schema
return app.openapi_schema