起因:误建在 yudao master 快照(vite 8.0.10 + rolldown@1.0.0-rc.17 前沿不稳, mini-desktop 构建 native binding 崩;另叠 pnpm10+ 拦原生构建脚本 esbuild)。 重做到稳定发布 tag v2026.01:vite 5.1.4 / vue 3.5.12 / element-plus 2.11.1。 - 保留 wanxiang 5 个 MVP 运营页(review/featured/dashboard/adSlot/withdraw) + 6 个 admin-api 模块(ad/trade/project/feed/telemetry/mock)+ 路由/.env 接线不变 - build:local 改 node 直跑 vite(绕 pnpm-run 预检),max-old-space 降至 4096 - 注:本次为基线切换提交,构建绿待 mini-desktop(15G)独立验证,本机 5.8G 跑前端 OOM Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import { DefineComponent } from 'vue'
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_APP_TITLE: string
|
|
readonly VITE_PORT: number
|
|
readonly VITE_OPEN: string
|
|
readonly VITE_DEV: string
|
|
readonly VITE_APP_CAPTCHA_ENABLE: string
|
|
readonly VITE_APP_TENANT_ENABLE: string
|
|
readonly VITE_APP_DEFAULT_LOGIN_TENANT: string
|
|
readonly VITE_APP_DEFAULT_LOGIN_USERNAME: string
|
|
readonly VITE_APP_DEFAULT_LOGIN_PASSWORD: string
|
|
readonly VITE_APP_DOCALERT_ENABLE: string
|
|
readonly VITE_BASE_URL: string
|
|
readonly VITE_API_URL: string
|
|
readonly VITE_BASE_PATH: string
|
|
readonly VITE_DROP_DEBUGGER: string
|
|
readonly VITE_DROP_CONSOLE: string
|
|
readonly VITE_SOURCEMAP: string
|
|
readonly VITE_OUT_DIR: string
|
|
readonly VITE_GOVIEW_URL: string
|
|
// API 加解密相关配置
|
|
readonly VITE_APP_API_ENCRYPT_ENABLE: string
|
|
readonly VITE_APP_API_ENCRYPT_HEADER: string
|
|
readonly VITE_APP_API_ENCRYPT_ALGORITHM: string
|
|
readonly VITE_APP_API_ENCRYPT_REQUEST_KEY: string
|
|
readonly VITE_APP_API_ENCRYPT_RESPONSE_KEY: string
|
|
}
|
|
|
|
declare global {
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv
|
|
}
|
|
}
|