fix local development

This commit is contained in:
Darius
2025-11-23 02:47:28 +01:00
parent 1b125b041d
commit 35d4b40b02
4 changed files with 6 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ await fastify.register(fastifySwagger, {
version: "1.0.0",
},
servers: [
{ url: "http://localhost:8080/api", description: "dev" },
{ url: "http://localhost:8080", description: "dev" },
{ url: "https://dpu.dariusbag.dev/api", description: "prod" },
],
},
@@ -45,7 +45,7 @@ const content = theme.getBuffer(SwaggerThemeNameEnum.ONE_DARK);
await fastify.register(fastifySwaggerUi, {
routePrefix: "/docs",
indexPrefix: "/api",
indexPrefix: `${Config.env_dev ? "" : "/api"}`,
uiConfig: {
docExpansion: "list",
deepLinking: false,