Files
kjh2064 525efaa9c1 fix: Add @kbx alias to vite.config, update screens.ts imports
- Add @kbx alias to vite config for @kbx/contracts resolution
- Update screens.ts to use KBX v60 ScreenDefinition contract
- Register 3 new pages: ShadowRunQueue (T06), ModelList (T02), ApprovalQueue (T03)

Fixes import resolution for KBX components in page registry.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-08-15 11:01:46 +09:00

21 lines
726 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const apiTarget = process.env.VITE_API_TARGET || 'http://localhost:5000'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@shared': fileURLToPath(new URL('./src/shared', import.meta.url)),
'@kbx': fileURLToPath(new URL('./src/shared/@kbx', import.meta.url)),
'@features': fileURLToPath(new URL('./src/features', import.meta.url)),
},
extensions: ['.ts', '.tsx', '.vue', '.js', '.jsx', '.json']
},
server: { proxy: { '/api': apiTarget } },
preview: { proxy: { '/api': apiTarget } }
})