fix baseUrl (#8347)

This commit is contained in:
Jack Amadeo
2026-04-06 15:27:14 -04:00
committed by GitHub
parent 771bc38731
commit 6a594a2094
25 changed files with 192 additions and 213 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
import type { MCPServer } from "../types/server";
const SERVERS_URL = "/goose/servers.json";
const SERVERS_URL = "/servers.json";
export async function fetchMCPServers(): Promise<MCPServer[]> {
try {
@@ -19,14 +19,14 @@ export async function fetchMCPServers(): Promise<MCPServer[]> {
export async function searchMCPServers(query: string): Promise<MCPServer[]> {
const servers = await fetchMCPServers();
const normalizedQuery = query.toLowerCase();
return servers.filter((server) => {
const normalizedName = server.name.toLowerCase();
const normalizedDescription = server.description.toLowerCase();
return (
normalizedName.includes(normalizedQuery) ||
normalizedDescription.includes(normalizedQuery)
);
});
}
}
+2 -2
View File
@@ -75,8 +75,8 @@ async function fetchSkillsManifest(): Promise<Skill[]> {
try {
// In Docusaurus, baseUrl changes automatically for PR previews.
// Example:
// prod: /goose/
// PR preview: /goose/pr-preview/pr-6752/
// prod: /
// PR preview: /pr-preview/pr-6752/
const baseUrl = siteConfig.baseUrl.endsWith("/")
? siteConfig.baseUrl
: `${siteConfig.baseUrl}/`;