Files
archy/packages/app/vite.config.ts
T
DorianandClaude Opus 4.6 00bdc055ba feat(app): add design system viewer, nostr feed, stop generation, and content refactor
- Design system browser with grid/detail views for tokens and components
- Nostr feed tab with note/article/zap filtering and relay status
- Stop generation button to abort AI streaming mid-response
- Paste & extract content without sending to AI
- Refactor useContentPanel into contentExtraction.ts and contentFiltering.ts
- Banner fallback composable for 3-stage image loading
- Wikipedia and Google Books as fallback image sources
- Loading skeletons with variant-specific shapes
- Mobile UX: auto-switch to content, back button, detail flow
- Project grid with breadcrumb nav and inline creation
- Filesystem Vite plugin for local project browsing
- Magazine text cleanup and song grid polish

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 13:08:32 +00:00

104 lines
2.7 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'
import { musicSearchPlugin } from './vite-music-search'
import { webSearchPlugin } from './vite-web-search'
import { rssPlugin } from './vite-rss'
import { fsPlugin } from './vite-fs'
export default defineConfig({
plugins: [
vue(),
tailwindcss(),
tmdbPlugin(),
devChatsPlugin(),
musicSearchPlugin(),
webSearchPlugin(),
rssPlugin(),
fsPlugin(),
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',
},
{
urlPattern: /\/api\/web-search\?.*/i,
handler: 'NetworkOnly',
},
{
urlPattern: /\/api\/rss-articles\?.*/i,
handler: 'NetworkOnly',
},
],
},
devOptions: {
enabled: true,
},
}),
],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@aiui/core': resolve(__dirname, '../core/src'),
},
},
server: {
port: 5173,
host: true,
open: false,
proxy: {
'/api/claude': {
target: 'http://localhost:3141',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/claude/, ''),
},
'/api/openrouter': {
target: 'http://localhost:3141',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/openrouter/, '/v1/openrouter'),
},
},
},
})