Skip to content

fix: use SEARCH_API_BASE for all links in find output#687

Open
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:fix/find-use-search-api-base
Open

fix: use SEARCH_API_BASE for all links in find output#687
elliotllliu wants to merge 1 commit intovercel-labs:mainfrom
elliotllliu:fix/find-use-search-api-base

Conversation

@elliotllliu
Copy link
Contributor

Summary

Closes #686 — replaces hardcoded https://skills.sh/ URLs in skills find output with the configurable SEARCH_API_BASE constant.

Problem

src/find.ts already respects SKILLS_API_URL env var for the search API request, but result rendering still hardcodes https://skills.sh/ for skill links and the discovery footer. This means self-hosted deployments show links to the wrong host.

Changes

Three hardcoded https://skills.sh/ occurrences replaced with ${SEARCH_API_BASE}:

  • Line 301: Skill detail link (└ https://skills.sh/{slug})
  • Line 345: Selected skill link (View the skill at ...)
  • Line 348: Discovery footer (Discover more skills at ...)

The default value (https://skills.sh) is unchanged, so behavior is identical for non-customized environments.

Replace hardcoded 'https://skills.sh/' URLs in skill detail links,
selected skill links, and the discovery footer with the configurable
SEARCH_API_BASE constant (which respects SKILLS_API_URL env var).

This ensures self-hosted/internal deployments show correct links
matching their configured search API endpoint.

Closes vercel-labs#686
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use SEARCH_API_BASE instead of hardcoded skills.sh in find output

1 participant