deploy: fix url swagger
This commit is contained in:
@@ -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'] },
|
||||||
|
|||||||
Reference in New Issue
Block a user