Skip to content

Commit

Permalink
update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Jan 23, 2025
1 parent 6aa751c commit e507b75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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
VITE_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
@@ -1,7 +1,7 @@
import type { MCPServer } from '../types/server';

export async function fetchMCPServers(): Promise<MCPServer[]> {
const baseUrl = import.meta.env.REACT_APP_BASENAME || "";
const baseUrl = import.meta.env.VITE_BASENAME || "";
try {
// Fetch all servers from the unified JSON file
const response = await fetch(`${baseUrl}servers.json`);
Expand Down
2 changes: 1 addition & 1 deletion extensions-site/react-router.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Config } from "@react-router/dev/config";

const basename = process.env.REACT_APP_BASENAME || "";
const basename = process.env.VITE_BASENAME || "";

export default {
basename,
Expand Down
2 changes: 1 addition & 1 deletion extensions-site/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

const basename = process.env.REACT_APP_BASENAME || "";
const basename = process.env.VITE_BASENAME || "";

export default defineConfig({
base: basename,
Expand Down

0 comments on commit e507b75

Please sign in to comment.