Update Vite config for root domain hosting
- Set base path to '/' for modelcontextprotocol.github.io root domain - Remove conditional path logic for cleaner configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0006f25269
commit
ccc21b1e61
1 changed files with 2 additions and 3 deletions
|
|
@ -5,9 +5,8 @@ import path from 'path'
|
|||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
// 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/' : '/',
|
||||
// Set base to '/' for root domain hosting at modelcontextprotocol.github.io
|
||||
base: '/',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue