Skip to main content
Glama
vite.config.ts986 B
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' const isElectron = process.env.ELECTRON === 'true' export default defineConfig({ plugins: [ react(), // Note: We build Electron main/preload separately with tsc, not via vite-plugin-electron // This avoids path issues and duplicate Electron process launches ], resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, // Pre-bundle mermaid and its dynamic imports to avoid issues in Electron optimizeDeps: { include: ['mermaid'], }, build: { outDir: '../../dist/public', emptyOutDir: true, // Use relative paths for Electron file:// loading base: isElectron ? './' : '/', }, // Use relative base in Electron mode base: isElectron ? './' : '/', server: { port: 5173, proxy: { // Change this port if running the backend on a different port '/api': 'http://localhost:4000', }, }, })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abrinsmead/mindpilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server