deploy: fix url swagger

This commit is contained in:
2025-10-09 00:02:11 +07:00
parent 44ddd50152
commit ebb3925d05
-15
View File
@@ -1,6 +1,5 @@
import { openapi } from '@elysiajs/openapi' import { openapi } from '@elysiajs/openapi'
import { OpenAPIV3 } from 'openapi-types' import { OpenAPIV3 } from 'openapi-types'
import { PORT } from '~/config'
import * as z from 'zod' import * as z from 'zod'
interface OpenApiDocWithTagGroups { 'x-tagGroups': { name: string, tags: string[] } } interface OpenApiDocWithTagGroups { 'x-tagGroups': { name: string, tags: string[] } }
@@ -20,20 +19,6 @@ export const swaggerPlugin = openapi({
'tags': [ 'tags': [
{ name: 'Device', description: 'Device API' }, { 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 --- // --- Grouping di atas tag ---
'x-tagGroups': [ 'x-tagGroups': [
{ name: 'Device', tags: ['Device'] }, { name: 'Device', tags: ['Device'] },