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

@@ -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",