import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ // Needed when the build is served from a subpath (e.g. local/diagram-app/ // inside the Bitrix docroot) instead of domain root — see // docs/bitrix-integration.md §7. base: process.env.VITE_BASE_PATH || '/', plugins: [react()], })