Files
archy/packages/app/vite.config.ts
T
Dorian 80aeefa4bf feat(chat): enhance chat functionality with song integration and UI improvements
- Updated ChatHeader and ChatMessage components to support song selection and display.
- Enhanced useContentPanel to handle both film and song content, allowing for richer interactions.
- Improved FilmCard and added SongCard components for better media representation.
- Refactored environment variables for better configuration management.
- Updated .gitignore to include development chat history.

Made-with: Cursor
2026-03-02 18:16:04 +00:00

88 lines
2.2 KiB
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
import { VitePWA } from 'vite-plugin-pwa'
import { resolve } from 'path'
import { tmdbPlugin } from './vite-tmdb'
import { devChatsPlugin } from './vite-dev-chats'
export default defineConfig({
plugins: [
vue(),
tailwindcss(),
tmdbPlugin(),
devChatsPlugin(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'icon.svg', 'apple-touch-icon-180x180.png'],
manifest: {
name: 'AIUI',
short_name: 'AIUI',
description: 'AI chat interface with rich content surfaces',
theme_color: '#0a0a0a',
background_color: '#0a0a0a',
display: 'standalone',
orientation: 'any',
start_url: '/',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,svg,png,woff2}'],
runtimeCaching: [
{
urlPattern: /^https:\/\/api\.anthropic\.com\/.*/i,
handler: 'NetworkOnly',
},
{
urlPattern: /^https:\/\/openrouter\.ai\/.*/i,
handler: 'NetworkOnly',
},
],
},
devOptions: {
enabled: true,
},
}),
],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@aiui/core': resolve(__dirname, '../core/src'),
},
},
server: {
port: 5173,
host: true,
open: true,
proxy: {
'/api/claude': {
target: 'http://localhost:3141',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/claude/, ''),
},
'/api/openrouter': {
target: 'https://openrouter.ai',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/openrouter/, ''),
},
},
},
})