chore: update @dokploy/trpc-openapi to version 0.0.17 and adjust OpenAPI document URL in settings router

This commit is contained in:
Mauricio Siu
2026-02-27 13:54:58 -06:00
parent 8ab139e222
commit 7e6e815375
3 changed files with 8 additions and 8 deletions

View File

@@ -55,7 +55,7 @@
"@codemirror/legacy-modes": "6.4.0",
"@codemirror/view": "6.29.0",
"@dokploy/server": "workspace:*",
"@dokploy/trpc-openapi": "0.0.16",
"@dokploy/trpc-openapi": "0.0.17",
"@faker-js/faker": "^8.4.1",
"@hookform/resolvers": "^5.2.2",
"@octokit/auth-app": "^6.1.3",

View File

@@ -530,12 +530,12 @@ export const settingsRouter = createTRPCRouter({
getOpenApiDocument: protectedProcedure.query(
async ({ ctx }): Promise<unknown> => {
const protocol = ctx.req.headers["x-forwarded-proto"];
const url = `${protocol}://${ctx.req.headers.host}/api/trpc`;
const url = `${protocol}://${ctx.req.headers.host}/api`;
const openApiDocument = generateOpenApiDocument(appRouter, {
title: "tRPC OpenAPI",
version: packageInfo.version,
baseUrl: url,
docsUrl: `${url}/trpc/settings.getOpenApiDocument`,
docsUrl: `${url}/settings.getOpenApiDocument`,
tags: [
"admin",
"docker",