Files
AeroStart/vite.config.ts
ZyphrZero a6daa5d728 feat(ui): add settings menu and mask opacity control
- Add SettingsMenu component for quick navigation between settings sections
- Add mask opacity control to adjust overlay transparency
- Optimize search suggestions with immediate response and smooth animations
- Refine component styles for more compact interface
- Fix Translation interface type definition for maskOpacity
- Unify Bilibili API path to simplify environment handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:45:36 +08:00

25 lines
526 B
TypeScript

import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
server: {
port: 3000,
host: '0.0.0.0',
proxy: {
'/api/bilibili': {
target: 'https://s.search.bilibili.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/bilibili/, '/main/suggest'),
secure: false,
}
}
},
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
}
}
});