Skip to content

Commit 6403c23

Browse files
Revert Vite config to subdirectory hosting
- 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 <[email protected]>
1 parent ccc21b1 commit 6403c23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import path from 'path'
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
// Set base to '/' for root domain hosting at modelcontextprotocol.github.io
9-
base: '/',
8+
// Set base to '/' for local testing, or to your repo name for GitHub Pages
9+
// e.g., base: '/example-remote-client/' for https://username.github.io/example-remote-client/
10+
base: process.env.NODE_ENV === 'production' ? '/example-remote-client/' : '/',
1011
resolve: {
1112
alias: {
1213
'@': path.resolve(__dirname, './src'),

0 commit comments

Comments
 (0)