diff --git a/src/plugins/swagger.ts b/src/plugins/swagger.ts index 56d5eaf..46f8c9d 100644 --- a/src/plugins/swagger.ts +++ b/src/plugins/swagger.ts @@ -1,6 +1,5 @@ import { openapi } from '@elysiajs/openapi' import { OpenAPIV3 } from 'openapi-types' -import { PORT } from '~/config' import * as z from 'zod' interface OpenApiDocWithTagGroups { 'x-tagGroups': { name: string, tags: string[] } } @@ -20,20 +19,6 @@ export const swaggerPlugin = openapi({ 'tags': [ { name: 'Device', description: 'Device API' }, ], - 'servers': [ - { - url: 'https://skyrainstudio.com', - description: 'production domain', - }, - { - url: `http://localhost:${PORT}`, - description: 'localhost', - }, - { - url: `https://skyrainstudio.com`, - description: 'Dev server', - }, - ], // --- Grouping di atas tag --- 'x-tagGroups': [ { name: 'Device', tags: ['Device'] },