hermes-agent/apps/desktop/vite.config.ts
Brooklyn Nicholson 89d5ee4b10 feat(desktop): add startup and onboarding flow
Add phase-based desktop boot progress, fresh-install sandbox testing, and first-run provider credential onboarding so packaged installs can start cleanly without manual settings detours.
2026-05-07 22:33:44 -04:00

33 lines
754 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
base: './',
plugins: [react(), tailwindcss()],
build: {
// Keep desktop packaging stable: Shiki ships many dynamic chunks by
// default, and electron-builder can OOM scanning thousands of files.
rolldownOptions: {
output: {
codeSplitting: false
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@hermes/shared': path.resolve(__dirname, '../shared/src')
}
},
server: {
host: '127.0.0.1',
port: 5174,
strictPort: true
},
preview: {
host: '127.0.0.1',
port: 4174
}
})