Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ exclude = [
"^https?://([a-z0-9-]+\\.)*example\\.(com|org|net)",
# SVG xmlns reference, not a real link.
"^http://www\\.w3\\.org/2000/svg$",
# POST-only AI search endpoint referenced in vocs.config.ts.
"^https://tempo\\.xyz/developers/api/search$",
]

# Reuse cached results across runs.
Expand Down
6 changes: 6 additions & 0 deletions vocs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export default defineConfig({
retriever: process.env.CLOUDFLARE_API_TOKEN
? Retriever.local({
embedding: Embedding.cloudflare(),
// Production pages are served behind the tempo.xyz `/developers`
// proxy; the default origin-relative endpoint escapes the prefix.
endpoint:
process.env.VERCEL_ENV === 'production'
? 'https://tempo.xyz/developers/api/search'
: undefined,
hybrid: true,
reranker: Reranker.cloudflare(),
sources: [
Expand Down
Loading