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:
parent
ccc21b1e61
commit
6403c23949
1 changed files with 3 additions and 2 deletions
|
|
@ -5,8 +5,9 @@ import path from 'path'
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
// Set base to '/' for root domain hosting at modelcontextprotocol.github.io
|
// Set base to '/' for local testing, or to your repo name for GitHub Pages
|
||||||
base: '/',
|
// e.g., base: '/example-remote-client/' for https://username.github.io/example-remote-client/
|
||||||
|
base: process.env.NODE_ENV === 'production' ? '/example-remote-client/' : '/',
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, './src'),
|
'@': path.resolve(__dirname, './src'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue