Files
36-character-flower/vite.config.ts
JiaJun 15c519a42c feat(auth): 添加登出功能并优化认证处理
- 添加了登出相关的API端点和常量定义
- 实现了登出功能及密码验证登出逻辑
- 添加了登出会话清理和浏览器存储清除
- 在用户信息模态框中集成了登出按钮
- 添加了登出相关的国际化翻译
- 优化了API客户端中的认证错误处理
- 实现了无效令牌的自动处理机制
- 更新了GitNexus索引统计数据
- 修改了构建输出目录配置
- 清理了不必要的注释和代码
- 调整了移动端头部组件结构
- 优化了游戏历史记录查询逻辑
- 添加了控制台日志用于调试
- 设置默认注册邀请码为D97DBC16
- 在.gitignore中添加构建产物忽略规则
2026-05-29 16:26:35 +08:00

38 lines
897 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import babel from '@rolldown/plugin-babel'
import tailwindcss from '@tailwindcss/vite'
import { tanstackRouter } from '@tanstack/router-plugin/vite'
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 9999,
host: '0.0.0.0',
allowedHosts: ['darlena-nonexpiring-cathie.ngrok-free.dev'],
proxy: {
'/api': {
target: 'https://zihua-api.h55555game.top',
changeOrigin: true,
},
},
},
plugins: [
tanstackRouter({
target: 'react',
autoCodeSplitting: true,
}),
tailwindcss(),
react(),
babel({ presets: [reactCompilerPreset()] }),
],
build: {
outDir: 'zihua-web',
},
})