We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f2812 commit 3d50e80Copy full SHA for 3d50e80
src/middleware/swagger.ts
@@ -11,10 +11,9 @@ export const useSwagger = (app: Elysia) =>
11
path: "/docs",
12
documentation: {
13
info: { title, version, description: "RESTful API for disc golf discs." },
14
- servers: [
15
- ...(!Config.IS_PROD && [{ url: `http://localhost:${Config.PORT}`, description: "development" }]),
16
- { url: "https://discit-api.fly.dev", description: "production" }
17
- ]
+ servers: Config.IS_PROD
+ ? [{ url: "https://discit-api.fly.dev", description: "production" }]
+ : [{ url: `http://localhost:${Config.PORT}`, description: "development" }]
18
},
19
exclude: ["/", /^\/(docs|bag)/i]
20
})
0 commit comments