Skip to content

Commit

Permalink
clean up env for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Jan 23, 2025
1 parent ae13849 commit 54c383b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs-and-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies and build extensions-site
working-directory: ./extensions-site
env:
REACT_APP_BASENAME: "/goose/v1/extensions" # Set the base URL here for the extensions site
REACT_APP_BASENAME: "/goose/v1/extensions/" # Set the base URL here for the extensions site
run: |
npm install
npm run build
Expand Down
2 changes: 1 addition & 1 deletion extensions-site/app/mcp-servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function fetchMCPServers(): Promise<MCPServer[]> {
const baseUrl = import.meta.env.REACT_APP_BASENAME || "";
try {
// Fetch all servers from the unified JSON file
const response = await fetch(`${baseUrl}/servers.json`);
const response = await fetch(`${baseUrl}servers.json`);
if (!response.ok) {
throw new Error('Failed to fetch servers');
}
Expand Down
2 changes: 1 addition & 1 deletion extensions-site/app/routes/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function DetailPage() {
const baseUrl = import.meta.env.REACT_APP_BASENAME || "";

useEffect(() => {
fetch(`${baseUrl}/servers.json`)
fetch(`${baseUrl}servers.json`)
.then((res) => res.json())
.then((servers) => {
const matchingServer = servers.find((s: Server) => s.id === id);
Expand Down

0 comments on commit 54c383b

Please sign in to comment.