mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 13:41:59 +08:00
- 新增内存缓存接口和实现,支持设置过期时间 - 在数据库初始化时创建全局缓存实例 - 为模型类型、提供商和价格查询添加缓存层 - 实现定期缓存常用数据的后台任务 - 优化数据库查询,减少重复查询和不必要的数据库访问 - 为价格查询添加索引,提高查询效率
15 lines
288 B
JavaScript
15 lines
288 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
publicDir: 'public',
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://aimodels-prices.q58.club',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|