Files
HellCon/vite.config.ts
T
SchluffeandClaude Opus 5.5 5f8c6a1916 WIP V improve UX [snapshot task 2]
Add the connections workspace (sidebar, editable slots, per-slot activity,
removal dialog with focus wrapping), remove the downloadable local HTML and
unreleased identity backup/restore, and start the 0.0.5 draft changelog.
Restore the released 0.0.3/0.0.4 changelog entries. Enable focus emulation
in browser checks so background tabs receive focus/blur events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:44:08 +02:00

19 lines
610 B
TypeScript

import { defineConfig, loadEnv } from 'vite';
import vue from '@vitejs/plugin-vue';
import { iceMiddleware } from './dev/ice-server.ts';
// Relative paths let the hosted build work from any static subdirectory.
export default defineConfig(({ mode }) => {
const env = { ...loadEnv(mode, process.cwd(), ''), ...process.env };
return {
base: './',
server: { host: '127.0.0.1' },
plugins: [vue(), {
name: 'local-turn-credentials',
configureServer(server) {
if (env.VITE_ICE_ENDPOINT === '/api/ice-servers') server.middlewares.use(iceMiddleware(env));
},
}],
};
});