From 6403c23949e44e44b02f15eba3fc895d1ca356c7 Mon Sep 17 00:00:00 2001 From: Jerome Date: Fri, 4 Jul 2025 15:55:30 +0100 Subject: [PATCH] Revert Vite config to subdirectory hosting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Restore conditional base path for /example-remote-client/ subdirectory - Keep current GitHub Pages setup at subdirectory URL 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- vite.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index db91dc5..babf8ce 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,8 +5,9 @@ import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], - // Set base to '/' for root domain hosting at modelcontextprotocol.github.io - base: '/', + // Set base to '/' for local testing, or to your repo name for GitHub Pages + // e.g., base: '/example-remote-client/' for https://username.github.io/example-remote-client/ + base: process.env.NODE_ENV === 'production' ? '/example-remote-client/' : '/', resolve: { alias: { '@': path.resolve(__dirname, './src'),