Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vocs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { plainMarkdownComponents } from './src/lib/markdown-output'
// Only set baseUrl in production — Vocs injects a <base> tag from this value,
// which causes all links to resolve to the absolute URL on preview deployments.
const baseUrl = resolveBaseUrl()
const openApiSpecUrl = process.env.OPENAPI_SPEC_URL ?? 'https://api.tempo.xyz/openapi.json'

const searchIndexFields = ['title', 'titles', 'subtitle', 'path', 'excerpt']
const searchBoost = { title: 5, subtitle: 3, titles: 2, path: 3, excerpt: 3 }
Expand Down Expand Up @@ -214,7 +215,7 @@ export default defineConfig({
openapi: [
{
path: '/docs/api',
spec: 'https://api.tempo.xyz/openapi.json',
spec: openApiSpecUrl,
sidebar: {
backLink: false,
collapsed: true,
Expand Down
Loading