From ebb3925d053a622e67e5c45a62896d3ad5ee66cb Mon Sep 17 00:00:00 2001 From: NurAlan Date: Thu, 9 Oct 2025 00:02:11 +0700 Subject: [PATCH] deploy: fix url swagger --- src/plugins/swagger.ts | 15 --------------- 1 file changed, 15 deletions(-) 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'] },