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 <noreply@anthropic.com>
This commit is contained in:
Jerome 2025-07-04 15:55:30 +01:00
commit 6403c23949
No known key found for this signature in database

View file

@ -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'),