f
This commit is contained in:
12
env.d.ts
vendored
Normal file
12
env.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
/** 覆盖全部端的 API 根路径,如 /api/v1 或 http://127.0.0.1:8888/api/v1 */
|
||||
readonly VITE_API_BASE_URL?: string
|
||||
/** H5 开发代理目标,仅 vite 使用,默认 http://127.0.0.1:8888 */
|
||||
readonly VITE_API_PROXY_TARGET?: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
Reference in New Issue
Block a user